[ create a new paste ] login | about

Link: http://codepad.org/OnOlioS3    [ raw code | output | fork ]

C, pasted on Jul 24:
1
2
3
4
5
6
7
8
 #include <stdio.h>
    void main()
    {
        int k = 5;
        int *p = &k;
        int **m  = &p;
        printf("%d%d%d\n", k, *p, **p);
    }


Output:
1
2
3
In function 'main':
Line 7: error: invalid type argument of 'unary *'
Line 3: warning: return type of 'main' is not 'int'


Create a new paste based on this one


Comments: