x=2,y=6,z=6
x=y==z;
printf(%d",x)

Answers were Sorted based on User's Feedback



x=2,y=6,z=6 x=y==z; printf(%d",x) ..

Answer / purnananda behera, mca 3rd sem

answer is: x=6
because x=y=z
y=z, y hold the value of z. //here y = 6
x=y, x hold the value of y. //here x = 6

Is This Answer Correct ?    6 Yes 9 No

x=2,y=6,z=6 x=y==z; printf(%d",x) ..

Answer / jignesh patel

IN THIS QUSTION X=Y==Z IS NOT TRU BEACUSE NOT SECIFY MY
THINK ARE EXPLAIN BELOW
X=2 ,Y=6 ,Z=6
IF(Y==Z)
X=2
PRINTF(" %d ",X);
ELSE
PRINTF("FALSE CONDITION");


OUR QUSTION IS MANY MISTAKE

Is This Answer Correct ?    0 Yes 7 No

x=2,y=6,z=6 x=y==z; printf(%d",x) ..

Answer / vijoeyz

y != z.
So, y == z is 0.
x = 0.

Best,
Vijay Zanvar,
Home Page - http://geocities.com/vijoeyz/

Is This Answer Correct ?    5 Yes 30 No

Post New Answer

More C Interview Questions

Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.

1 Answers   TCS,


char ch=10;printf("%d",ch);what is the output

14 Answers   Accenture,


What is encapsulation?

2 Answers  


What is file in c language?

0 Answers  


what is the difference between call by value and call by reference?

5 Answers   Genpact, Global Logic, Infosys,






Is c still relevant?

0 Answers  


Which is better pointer or array?

0 Answers  


Do you know what are bitwise shift operators in c programming?

0 Answers  


Why isnt there a numbered, multi-level break statement to break out

0 Answers  


6)What would be the output? main() { int u=1,v=3; pf("%d%d",u,v); funct1(&u,&v); pf("%d%d\n",u,v); } void funct1(int *pu, int *pv) { *pu=0; *pv=0; return; } a)1 3 1 3 b)1 3 1 1 c)1 3 0 0 d)1 1 1 1 e) 3 1 3 1

4 Answers  


What is volatile

2 Answers  


What are advantages and disadvantages of recursive calling ?

12 Answers   College School Exams Tests, Evolving Systems, HP, Jyoti Ltd, Sage, Wipro,


Categories