fork(1) download
  1. #include <stdio.h>
  2.  
  3. static const int SZ = 100;
  4. char str[SZ] = "Hello";
  5.  
  6. int main(void)
  7. {
  8. puts(str);
  9. }
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:4:6: error: variably modified ‘str’ at file scope
 char str[SZ] = "Hello";
      ^~~
prog.c:4:16: warning: initializer-string for array of chars is too long
 char str[SZ] = "Hello";
                ^~~~~~~
stdout
Standard output is empty