output for following code???

main()
{
int x=2,y,z;
x*=3+2;
printf("1.%d\n",x);
x*=y=z=4;
printf("2.%d %d %d\n",x,y,z);
x=y==z;
printf("3.%d\n",x);
x==(y=z);
printf("%d",x);
}

Answers were Sorted based on User's Feedback



output for following code??? main() { int x=2,y,z; x*=3+2; printf(&qu..

Answer / nandhini

1.10
2.40
3.4
4

Is This Answer Correct ?    1 Yes 0 No

output for following code??? main() { int x=2,y,z; x*=3+2; printf(&qu..

Answer / manikanta

1.10
2.40 4 4
3.1
1

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the most efficient way to count the number of bits which are set in a value?

4 Answers  


What is the difference between Printf(..) and sprint(...) ?

0 Answers   InterGraph,


What is the code for 3 questions and answer check in VisualBasic.Net?

0 Answers   Infosys,


WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N TIMES C COMES N TIMES D COMES N TIMES AND SO ON......... AT LAST UNTIL Z COMES N TIMES...............

3 Answers  


What is build process in c?

0 Answers  






who invented c

13 Answers   IBM,


What is a pointer on a pointer in c programming language?

0 Answers  


How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)

4 Answers  


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

0 Answers  


What is null pointer constant?

0 Answers  


If input is 123 then how to print 100 and 20 and 3 seperately?

4 Answers  


Explain pointer. What are function pointers in C?

0 Answers   HCL,


Categories