- #1
dE_logics
- 742
- 0
In this code -
I get the output as -
And I was wondering b won't store the negative sign.
Code:
#include<stdio.h>
main()
{
signed int a = -9485;
unsigned int b = -9485;
printf("%d", a);
printf("%d", b);
}
I get the output as -
Code:
-9485-9485
And I was wondering b won't store the negative sign.