fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a=2;
  6. int **p;
  7. p=&a;
  8. printf("%d",*p);
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:3: error: cannot convert ‘int*’ to ‘int**’ in assignment
  p=&a;
   ^
prog.cpp:8:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=]
  printf("%d",*p);
                ^
stdout
Standard output is empty