Re:The Shortest Crashing C Program
by bnegreve on Friday May 24, 2013 @10:08AM
(#5762819)
Ok, well I agree. I mean global variables are not created dynamically. There is room reserved for them in the data segment which is initialized to 0. Can you give me an example where a global variable isn't initialized to 0? Your valgrind example doesn't say much about the value in the main variable ..
Edit, @deweerdt: ok :)