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
Difference between constant pointer and pointer to a constant.
What are volatile variables in c?
What is static identifier?
Why do we need volatile in c?
What is indirection?
What does the c in ctime mean?
Write a program to reverse a given number in c language?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
using for loop sum 2 number of any 4 digit number in c language
What’s a signal? Explain what do I use signals for?
What is indirection? How many levels of pointers can you have?
What is #include cctype?
Is int a keyword in c?
How do you declare a variable that will hold string values?