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
How do you sort filenames in a directory?
List some applications of c programming language?
What are called c variables?
What is main () in c?
What is pass by reference in c?
Why do we use namespace feature?
What are global variables and how do you declare them?
Tell us something about keyword 'auto'.
How to draw the flowchart for structure programs?
What are the loops in c?
What is anagram in c?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
program for reversing a selected line word by word when multiple lines are given without using strrev
What is the need of structure in c?
Why is sizeof () an operator and not a function?