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
What is sizeof int in c?
Why C language is a procedural language?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
all c language question
What are header files and what are its uses in C programming?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Explain what is output redirection?
What is local and global variable in c?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Explain about the constants which help in debugging?
Write a program to generate the Fibinocci Series
What is an auto keyword in c?
Can variables be declared anywhere in c?
Differentiate between static and dynamic modeling.
Explain how can you restore a redirected standard stream?