fork(5) download
  1. #include <stdio.h>
  2. #include <limits.h>
  3. int main(void) {
  4. unsigned int a,b,c;
  5. a=3,b=5;
  6. c=a-b;
  7. printf("Unsigned Value of variable c = %u \n",c);
  8. printf("\n UINT_MAX = %u = 0x%x",UINT_MAX,UINT_MAX);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
Unsigned Value of variable c = 4294967294 

 UINT_MAX = 4294967295 = 0xffffffff