When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
8 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
does it compile?
well then it would seem to be declared correctly?
wdym
what about it?
yes this is a common old C hack
it declares an array of size 0 or 1 at the end of the struct and then it allocates more memory than the struct officially needs to effectively give you N elements to the array
please don't ever do this in your own code.