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
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Tell me when would you use a pointer to a function?
What is int main () in c?
What is the most efficient way to count the number of bits which are set in an integer?
if p is a string contained in a string?
What will be your course of action for a push operation?
difference between Low, Middle, High Level languages in c ?
What do you mean by a local block?
write a c program in such a way that if we enter the today date the output should be next day's date.
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Is it possible to have a function as a parameter in another function?
Explain how are 16- and 32-bit numbers stored?
What is the 'named constructor idiom'?
What is the difference between union and structure in c?
Explain how do you override a defined macro?