Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Probably I've made a mistake before asking this question.

Using the memory address of the pointer:

const Point* points

You can access Points data. There are only "x"s and "y"s stored, more precisely, starting from the address of the pointer, in this way:

points[0].x, points[0].y, points[1].x, points[1].y, ...

Where every element is 4 byte (32 bit).