Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct GPoint
- {
- int x;
- int y;
- }
- // Array of twenty GPoints
- GPoint[] myArr = malloc(20 * sizeof(GPoint);
- GPoint* myPointer = myArr;
- int index = GetIndexAffectedPoint();
- // Invert X and Y for the point
- myPointer += 8*index;
- swap(myPointer);
Add Comment
Please, Sign In to add comment