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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between constant pointer and pointer to a constant.

846


What are volatile variables in c?

723


What is static identifier?

938


Why do we need volatile in c?

961


What is indirection?

853


What does the c in ctime mean?

816


Write a program to reverse a given number in c language?

886


Function calling procedures? and their differences? Why should one go for Call by Reference?

866


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

2135


using for loop sum 2 number of any 4 digit number in c language

2018


What’s a signal? Explain what do I use signals for?

873


What is indirection? How many levels of pointers can you have?

931


What is #include cctype?

850


Is int a keyword in c?

749


How do you declare a variable that will hold string values?

947