when will be evaluated as true/
if(x==x==x)
a) x=1;
b) x=0;
c) x=-1;
d) none
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / vikram
if x=1,then x==x evaluates to 1;
again,1==x evaluates to 1 only if x=1,
if(1) means condition becomes true and the if block will be
executed,
thnx
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / vignesh1988i
all the three cases possible as for as i know.......
x=1
x=0
x=-1
| Is This Answer Correct ? | 1 Yes | 10 No |
Program to find the value of e raised to power x using while loop
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Program to display given 3 integers in ascending order
which will be first in c compiling ,linking or compiling ,debugging.
what is the difference between procedure oriented and object oriented progaming language
Write the syntax and purpose of a switch statement in C.
Explain what is wrong in this statement?
main() { int a = 65; printf(“%d %o %x”,a,a,a); } Output 65 101 41 Please explain me.How it is coming like that?
if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND CORRESPONDING VALUE FROM ASCII TABLE
where are auto variables stored? What are the characteristics of an auto variable?
What is the significance of scope resolution operator?
0 Answers Agilent, ZS Associates,
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks