language: C++ 4.7.2 (gcc-4.7.2)
date: 630 days 12 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
#include<stdio.h>
 
int main (){
        int x = 10;
        int* a = &x;
        int** b = &a;
        printf("%d  %d  %d  %d  %d  %d  ",x,a,*a,b,*b,**b);
        return 0;
}
prog.cpp: In function ‘int main()’:
prog.cpp:7: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘int*’
prog.cpp:7: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘int**’
prog.cpp:7: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘int*’