Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the result
main()
{
char c=-64;
int i=-32
unsigned int u =-16;
if(c>i){
printf("pass1,");
if(c<u)
printf("pass2");
else
printf("Fail2");}
else
printf("Fail1);
if(i<u)
printf("pass2");
else
printf("Fail2")
}
a)Pass1,Pass2
b)Pass1,Fail2
c)Fail1,Pass2
d)Fail1,Fail2
e)none

Answer Posted / vikraman85

u should not assign a negative value to unsigned int! b'coz
it has only +ve values 0to2^15-1..

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is register a keyword in c?

996


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1528


which is an algorithm for sorting in a growing Lexicographic order

1749


Why c language?

1009


What is wrong with this statement? Myname = 'robin';

1267


why return type of main is not necessary in linux

2046


What are multidimensional arrays?

1068


Why is c used in embedded systems?

1065


Is c dynamically typed?

1093


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1630


What is a program flowchart?

1126


What is c language used for?

928


what are the 10 different models of writing an addition program in C language?

1843


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

1161


develop algorithms to add polynomials (i) in one variable

2111