[ create a new paste ] login | about

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

C++, pasted on Sep 19:
1
2
3
4
5
6
7
8
9
    #include <iostream>
    using std::cout; using std::endl;
    int main()
    {
      const char* strPtr = "what's my address?";
      const void* address = strPtr;
      cout << "Address: " << address << endl;;
      cout << "Not the address: " << strPtr << endl;;
    }


Output:
1
2
Address: 0x804e483
Not the address: what's my address?


Create a new paste based on this one


Comments: