0

Are you auto static?

#include <stdio.h> int main() { int a, b; //must be initiallized by garbage value! printf("\n%d, %d", a, b); return 0; } /* Expected Output : -73827 27918 (i.e. random garbage values) Actual Output: 0 0 (strange) */

25th Oct 2019, 4:24 PM
Ankit Verma
Ankit Verma - avatar
2 Respostas
+ 3
It's not really all that strange, garbage value is unpredictable, we can't really expect a certain value always be there.
25th Oct 2019, 4:29 PM
Ipang