fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. char a[3]={'y','u','\0'};
  6. char (*p)[3]=&a;
  7. //char *p=&a[0];
  8. printf("Hello world!_%c\n",*(a+1));
  9. //printf("Hello world!_%c\n",*(p+1));
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:12: error: unused variable ‘p’ [-Werror=unused-variable]
     char (*p)[3]=&a;
            ^
cc1: all warnings being treated as errors
stdout
Standard output is empty