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

Describe the difference between = and == symbols in c programming?

0 Answers  


Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?

2 Answers   TCS,


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

0 Answers  


1) int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain the explain the output

2 Answers  


What is a rvalue?

0 Answers   Global Logic,






Write a C program in Fibonacci series.

0 Answers   iNautix,


what is void pointer?

2 Answers  


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

0 Answers  


Difference between null pointer and dangling pointer?

7 Answers   GE, Wipro,


What is a pointer and how it is initialized?

0 Answers  


What is the difference between text files and binary files?

0 Answers  


what is a function prototype?

1 Answers  


Categories