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 / subbu
this program gives an error that comparison between signed
and unsigned int
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
Explain the difference between strcpy() and memcpy() function?
Differentiate fundamental data types and derived data types in C.
What the different types of arrays in c?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Describe static function with its usage?
What are reserved words?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Is it acceptable to declare/define a variable in a c header?
What are file streams?
Write a code on reverse string and its complexity.
What is a spanning Tree?
What is meant by int main ()?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is huge pointer in c?
What is string function in c?