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

Answers were Sorted based on User's Feedback



What is the result main() { char c=-64; ..

Answer / divyesh

Fail1, Pass2

Is This Answer Correct ?    23 Yes 2 No

What is the result main() { char c=-64; ..

Answer / jack

c) Fail1,Pass2..........

Is This Answer Correct ?    10 Yes 1 No

What is the result main() { char c=-64; ..

Answer / bee

answer is c...
fail1,pass 2

Is This Answer Correct ?    6 Yes 1 No

What is the result main() { char c=-64; ..

Answer / madhuri

here int i=-32 is not terminated so syntax error
if that statement was terminated then the answer would be
none in the given options because the output of the program
would be
pass1
pass2
pass2

Is This Answer Correct ?    3 Yes 1 No

What is the result main() { char c=-64; ..

Answer / bishnu agrawal

it is an error bcoz u can assing a signed value to unsigned variable so answer is null

Is This Answer Correct ?    1 Yes 1 No

What is the result main() { char c=-64; ..

Answer / subbu

this program gives an error that comparison between signed
and unsigned int

Is This Answer Correct ?    4 Yes 5 No

What is the result main() { char c=-64; ..

Answer / 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

What is the result main() { char c=-64; ..

Answer / nageswari

none

Is This Answer Correct ?    1 Yes 5 No

What is the result main() { char c=-64; ..

Answer / karthika

pass1 fail2

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More C Interview Questions

What is scope rule of function in c?

0 Answers  


What is size of union in c?

0 Answers  


in b=6.6/a+(2*a+(3*c)/a*d)/(2/n); which operation will be performed first a) 6.6/a b) 2*a c) 3*c d) 2/n

1 Answers  


What is the use of header?

0 Answers  


Explain the properties of union.

0 Answers  


how to swap 4 number without using temporary number?

2 Answers  


Sir i want e-notes of C languge of BAlaguruswami book i.e scanned or pdf file of balaguruswamy book on c language.PLEASE SEND ME on my mail id ajit_kolhe@rediff.com

8 Answers  


main() { int i=5; printf("%d%d%d%d",i++,i--,i); }

10 Answers  


difference between c and c++?

2 Answers  


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

0 Answers  


When is a “switch” statement preferable over an “if” statement?

0 Answers  


Convert the following expression to postfix and prefix (A+B) * (D-C)

3 Answers   Satyam,


Categories