Hi,
the output of
printf("d = %d\n", atoi(&d));
is 100% undefined
You're casting a char to a null terminated string.
The compiler do whatever it wants with the stack, variables order,
registers and so on.
** Changed in: gcc-defaults (Ubuntu)
Status: Unconfirmed => Rejected
--
GCC (Ubuntu 4.1.2-0ubuntu3) Causing Data Corruption
https://launchpad.net/bugs/88292
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
