when will be evaluated as true/
if(x==x==x)
a) x=1;
b) x=0;
c) x=-1;
d) none
Answer Posted / singh
if block will be evaluated as true only if x=1.
because for first comparision x==x it returns 1.
then it again compares with x==x ie,x==1.
-it will return true only if x=1;
Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
What is getch c?
What is n in c?
What is the difference between exit() and _exit() function in c?
How can I read/write structures from/to data files?
Do you know the difference between malloc() and calloc() function?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
How can you draw circles in C?
What are loops c?
Define Spanning-Tree Protocol (STP)
differentiate built-in functions and user – defined functions.
Can the curly brackets { } be used to enclose a single line of code?
Can the sizeof operator be used to tell the size of an array passed to a function?
List some of the static data structures in C?
What is the newline escape sequence?
How do you determine whether to use a stream function or a low-level function?