You use %d in printf, which means printing data in signed decimal form.
Signed int (compiler allows abbreviation int) is a signed integer of at least 2 bytes. Now the operating system is basically set to 4 bytes, and the value range of 4-byte int is -2 147483647 to 2 147483647.