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 / jack
c) Fail1,Pass2..........
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is difference between structure and union with example?
Does * p ++ increment p or what it points to?
What is the difference between array and pointer in c?
What is the collection of communication lines and routers called?
What is sizeof int?
What is a null string in c?
What is array in c with example?
Which is better pointer or array?
What does the c in ctime mean?
State the difference between realloc and free.
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
how many errors in c explain deply
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Differentiate between Macro and ordinary definition.