fork download
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. int main()
  4. {
  5. char *a=(char*) calloc(20,sizeof(char[20]));
  6. a[0]="abcd";
  7. printf("%s\n",a[0]);
  8. return 0;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:9: error: assignment makes integer from pointer without a cast [-Werror]
prog.c:7:5: error: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Werror=format]
cc1: all warnings being treated as errors
stdout
Standard output is empty