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 auto keyword in c?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Explain what’s a signal? Explain what do I use signals for?
Write a program to swap two numbers without using third variable?
Is there a way to switch on strings?
Is a house a mass structure?
Explain how can type-insensitive macros be created?
How can I find the modification date of a file?
What is structure in c definition?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What does c mean?
Do pointers take up memory?
What is c language & why it is used?
Differentiate between calloc and malloc.
Which control loop is recommended if you have to execute set of statements for fixed number of times?