Pointer Questions

Aug 17, 2011 at 12:13pm
What would a line of code like this do?

int *****************ptr;
Aug 17, 2011 at 12:14pm
closed account (1vRz3TCk)
Give the programmer a big headache.
Aug 17, 2011 at 12:30pm
Well that was detailed. Anyone else have a reasonable answer.
Aug 17, 2011 at 12:33pm
It'll allocate 4 bytes on the stack, which will be interpreted as a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to a pointer to an int... basically
Aug 17, 2011 at 12:44pm
Thank you.
Aug 17, 2011 at 12:50pm
adikid89: You missed one level of indirection.
Aug 17, 2011 at 12:54pm
closed account (1vRz3TCk)
It could be 8 bytes on the stack (64 bit int) and I think there is another pointer to needed in there (maybe).
Topic archived. No new replies allowed.