#include <stdio.h> int main(void) { // your code goes here int a=2; int **p; p=&a; printf("%d",*p); return 0;}
Standard input is empty
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); ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!