when will be evaluated as true/
if(x==x==x)
a) x=1;
b) x=0;
c) x=-1;
d) none
Answer Posted / naveen
o/p is x=0;
as x==x it will give 1 as result;
then again x==1;
so it will be false if x!=1i.e it will be true for only if
x value is 1.
i.e x=1 only if xis 1 other wise it is 0
Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
When should you use a type cast?
What is gets() function?
How do you declare a variable that will hold string values?
Explain what is the difference between a free-standing and a hosted environment?
How many loops are there in c?
What is string concatenation in c?
Difference between constant pointer and pointer to a constant.
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
Explain what is the benefit of using an enum rather than a #define constant?
What is the use of pragma in embedded c?
Difference between pass by reference and pass by value?
Which is more efficient, a switch statement or an if else chain?
Is c high or low level?
What are conditional operators in C?
Write a program in c to replace any vowel in a string with z?