Because that's what you asked for.
%d is asking for a signed int. On pretty much any platform out there, int is 32 bits. 2.8 billion is larger than can be represented in a signed int, ergo wraparound.
In reply to Re: Why does printf() do this to big numbers?
by fullermd
in thread Why does printf() do this to big numbers?
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |