[ create a new paste ] login | about

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

C++, pasted on Dec 24:
1
2
3
4
5
6
7
8
#include <iostream>

using namespace std;

int main(){
    char line[]="hello", *p=line;
    cout<<(int*)p<<'\n'<<&line<<'\n'<<(int*)line<<endl;
}


Output:
1
2
3
0xbf8d8b86
0xbf8d8b86
0xbf8d8b86


Create a new paste based on this one


Comments: