fork download
  1. int main()
  2. {
  3. const int foo=13; //cpp compiler knows this really is const !
  4. int bar[foo]={0};
  5. return 0;
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:4: error: variable-sized object may not be initialized
prog.c:4: warning: excess elements in array initializer
prog.c:4: warning: (near initialization for ‘bar’)
prog.c:4: warning: unused variable ‘bar’
stdout
Standard output is empty