#include "stdafx.h"
#include "iostream"
using namespace std;
struct S
{
int i = 10;
int *p = (int*)1111;
};//size of it is 16.
int main()
{
S s;
int *p = &s.i;
cout <<"size of s:"<< sizeof(s) << endl;
cout << "size of p[0]:"<<sizeof(p[0]) << endl;
cout<<"sizeof p:"<<sizeof(p) << endl;
cout << sizeof(s.p[0]) << endl;
p[0] = 4;
p[1] = 3;
s.p = p;
s.p[1] = 1;
s.p[0] = 2;
return 0;
}