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 meant by keywords in c?
Why is c called a structured programming language?
What does void main return?
What is the difference between functions getch() and getche()?
What are structural members?
What is switch in c?
What are the uses of null pointers?
Can we change the value of static variable in c?
What are the 5 data types?
How can you return multiple values from a function?
write a program to print data of 5 five students with structures?
What are the types of data types and explain?
What is class and object in c?
Create a simple code fragment that will swap the values of two variables num1 and num2.
write a c program to find the sum of five entered numbers using an array named number