Showing posts with label Compare unsinged long int and int in MSVC. Show all posts
Showing posts with label Compare unsinged long int and int in MSVC. Show all posts

Tuesday, March 29, 2011

Compare unsinged long int and int in MSVC

# include "stdio.h"
int main()
{
int a;
unsigned long int b=0;
printf("Enter the integer vlue\n");
scanf("%d",&a);
printf("%d\t",a);

//printf("%d\t",b);
b = a;
printf("%u\t\n",b);


scanf("%d",&b);
printf("\n%u\t",b);

//printf("%d\t",a);
a = b;
printf("%d\t",a);



return 0;
}

OUTPUT
Enter the integer value
55555555555555555555555555555555555555555
a= -477218589 b= 3817748707
55555555555555555555555555555555555555555

a= -477218589 b= 3817748707 Press any key to continue . . .