fork download
  1. #include<stdio.h>
  2.  
  3. void main()
  4. {
  5. char a[10][5] = {"hi", "hello", "fellow"};
  6. printf("%s",a[1]);
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:6: error: return type of 'main' is not 'int' [-Werror=main]
 void main()
      ^
prog.c: In function 'main':
prog.c:5:37: error: initializer-string for array of chars is too long [-Werror]
     char a[10][5] = {"hi", "hello", "fellow"};
                                     ^
prog.c:5:37: note: (near initialization for 'a[2]')
cc1: all warnings being treated as errors
stdout
Standard output is empty