[ create a new paste ] login | about

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

C++, pasted on Aug 31:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class X
{
   int xxx;
};


void CreateX( X*& arg)
{
   arg = new X();
}

int main()
{
    X* test = NULL;
    CreateX(test);

    printf("%X", (int)test);
    return 0;
}


Output:
1
804F438


Create a new paste based on this one


Comments: