#include <iostream>
using namespace std;
struct ECC
{
int a = 5;
int b = 10;
int c = 11;
};
int main()
{
ECC A;
int* aptr = &(A.a);
cout << *aptr << endl;
cout << *(aptr + 1) << endl;
cout << *(aptr + 2) << endl; // The part where i'm interested in
return 0;
}
Can this always be valid? In other words, Can the pointers strictly point the highlighted part?