unsigned int i; scanf("%u",&i);
With the size of unsigned integers being 4 bytes, What happens when a negative number is entered?
A run-time error is encountered and the program aborts.
unsigned int variables cannot store the sign (+ or -) of the number. The sign is discarded and only the number is stored in i.
A large positive number will be stored in i.
Unsigned int variables cannot store signed numbers. Hence in this program i will contain garbage values.