While experimenting with different data types I noticed that when using all unsigned data types and performing a calculation resulting is a negative value, the computer still outputs the negative value. Here's an example of the code I am using:
I am not receiving any errors in compilation or during execution. Can someone explain to me what's going on? Thanks!Code:#include <stdio.h> int main() { unsigned int a = 1; unsigned int b = 0; unsigned int c; c = b - a; printf( "%d", c ); return 0; }