L
lancer6238
Hi,
I have a question on pointer arithmetic. Say I have the following:
uint8_t ext = 1;
struct ex *temp; // sizeof(ex) = 40 bytes
If I were to do
temp += (ext + 2) * 4;
Would I move the pointer "temp" 12 bytes from its original position,
or would it move the pointer 12 * sizeof(ex) = 480 bytes?
Thank you.
Regards,
Rayne
I have a question on pointer arithmetic. Say I have the following:
uint8_t ext = 1;
struct ex *temp; // sizeof(ex) = 40 bytes
If I were to do
temp += (ext + 2) * 4;
Would I move the pointer "temp" 12 bytes from its original position,
or would it move the pointer 12 * sizeof(ex) = 480 bytes?
Thank you.
Regards,
Rayne