3 ms·
Pointer arithmetic uses it a lot. For example: struct X { float a; int b[10]; }; X x; If you want to access x.b[3], then you
by amelius 6y ago
Pointer arithmetic uses it a lot. For example:
struct X
{
float a;
int b[10];
};
X x;
If you want to access x.b[3], then you have to add sizeof float to the address of x, and then add sizeof int times 3.