#include "stdafx.h" #include using namespace std; struct Point { int x; int y; }; struct Rect { struct Point topLeft; Point bottomRight; }; Rect myGlobalRectArray[100]; int main() { Rect r; Point p1, *pointPointer; r.bottomRight.x = 100; p1.y = 10; pointPointer = &p1; //pointPointer = &r.bottomRight; (*pointPointer).y = 0; // these two pointPointer->y = 0; // lines are exactly the same return 0; }