[ create a new paste ] login | about

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

C, pasted on May 11:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
int main() {
    char *str = "xyz";
    char **c = &str;
    void **a, *b;
    a = c;
    b = c;
    printf("%p %p\n%s %s\n", a, b, *(char **)a, *(char **)b);
    return 0;
}


Output:
1
2
0xbf99b46c 0xbf99b46c
xyz xyz


Create a new paste based on this one


Comments: