fork download
  1. #include <stdio.h>
  2.  
  3. void f1()
  4. {
  5. char text1[] = "000.00";
  6. }
  7. void f2()
  8. {
  9. char[] text2 = "000.00";
  10. }
  11. int main(void) {
  12. return 0;
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'f1':
prog.c:5:7: warning: unused variable 'text1' [-Wunused-variable]
  char text1[] = "000.00";
       ^
prog.c: In function 'f2':
prog.c:9:6: error: expected identifier or '(' before '[' token
  char[] text2 = "000.00";
      ^
stdout
Standard output is empty