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


Please Help Members By Posting Answers For Below Questions

What is getch c?

867


What is n in c?

587


What is the difference between exit() and _exit() function in c?

594


How can I read/write structures from/to data files?

558


Do you know the difference between malloc() and calloc() function?

624






How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

661


How can you draw circles in C?

635


What are loops c?

632


Define Spanning-Tree Protocol (STP)

661


differentiate built-in functions and user – defined functions.

644


Can the curly brackets { } be used to enclose a single line of code?

721


Can the sizeof operator be used to tell the size of an array passed to a function?

629


List some of the static data structures in C?

768


What is the newline escape sequence?

599


How do you determine whether to use a stream function or a low-level function?

667