Why does the array a not get initialized by global variable size?
a
size
#include int size = 5; int main() { int a[si
The compiler cannot assume that the value of size is still 5 by the time main() gets control. If you want a true constant in an old-style C project, use:
#define size 5