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
How are Structure passing and returning implemented by the complier?
What is the difference between abs() and fabs() functions?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Are the expressions * ptr ++ and ++ * ptr same?
Why do we use header files in c?
What are loops in c?
C program to find all possible outcomes of a dice?
How can I swap two values without using a temporary?
Why is c called a mid-level programming language?
Is there a built-in function in C that can be used for sorting data?
What does c value mean?
What are the parts of c program?
What is the purpose of 'register' keyword?
hi, which software companys will take,if d candidate's % is jst 55%?
Do pointers store the address of value or the actual value of a variable?