verifying array initialization
#include <stdio.h>
#define iGLOBAL_ARRAY_SIZE 10
#define iSTATIC_ARRAY_SIZE 20
int iglobal_array[iGLOBAL_ARRAY_SIZE]; /*a global array*/
int main( ){
static int istatic_array[iSTATIC_ARRAY_SIZE]; /*a static array*/
printf("iglobal_array[0]: %d\n",iglobal_array[0]);
printf("istatic_array[0]: %d\n",istatic_array[0]);
return(0);
}
Related examples in the same category