[ create a new paste ] login | about

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

C++, pasted on Nov 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
using namespace std;
struct test1
{
char a;
double b;
int c;
};
int main()
{
test1 A;
cout << (int)(&(A.a)) << endl;
cout << (int)(&(A.b)) << endl;
cout << (int)(&(A.c)) << endl;
}


Output:
1
2
3
-2639232
-2639228
-2639220


Create a new paste based on this one


Comments: