fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int list[10]={0,1,2,3,4,5,6,7,8,9}
  5. int *p;
  6. p=list;
  7. printf("%d\n",*list);
  8. printf("%d\n",*p+1);
  9. printf("%d\n",*(p+1));
  10. return 0;
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:2: error: expected ‘,’ or ‘;’ before ‘int’
  int *p;
  ^~~
prog.c:6:2: error: ‘p’ undeclared (first use in this function)
  p=list;
  ^
prog.c:6:2: note: each undeclared identifier is reported only once for each function it appears in
stdout
Standard output is empty