Mail Archives: djgpp/1997/02/20/20:14:05
Dim Zegebart (zager AT post DOT comstar DOT ru) wrote:
: What will happens in line free(&x) ? Is it correct ?
: (I know, it's not correct. But what will happens ?)
If something's illegal, the results are usually 'undefined', and will depend
upon compiler and possibly platform.
If in doubt, try it out. I'm in a linux boot at the moment, and it produces
a segmentation fault. Under DOS this is likely to be a SIGSEGV.
I should let the compiler deal with freeing up local variable space - it
knows what it's doing :)
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -