how to initialize an array in c
double balance[5] = {1000.0, 2.0, 3.4, 7.0, 50.0};
how to initialize an array in c
double balance[5] = {1000.0, 2.0, 3.4, 7.0, 50.0};
initialize array in c with 0
static char ZEROARRAY[1024]; // if declaration is in global scope or is static it will alredy be initialized to Zeroes
// OR
char ZEROARRAY[1024] = {0}; // Compiler fills unwritten entries with zeroes
// OR
memset(ZEROARRAY, 0, 1024); // Alternatively you could use memset to initialize the array at program startup:
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us