|
|
|
|
|
by Animats
3465 days ago
|
|
Yes. This only works for arrays on the stack, at best. It assumes that arrays are placed on the stack in the order of declaration, which is not a requirement of the C standard and may differ between compilers. Unless you're writing a buffer overflow exploit, in which case you need to know exactly what's on the stack and where, this isn't a good way to program. Update: misread the article; thought he was differencing with the beginning of the next array. |
|