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

Is c easy to learn?

0 Answers  


what is the difference between 123 and 0123 in c?

0 Answers  


Why isn't any of this standardized in c? Any real program has to do some of these things.

0 Answers  


What is the scope of local variable in c?

0 Answers  


write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,25,26,27};

5 Answers  






How many types of operator or there in c?

0 Answers  


1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file

1 Answers  


How can I make a program in c to print 'Hello' without using semicolon in the code?

9 Answers   C DAC, Practical Viva Questions,


What is the right type to use for boolean values in c? Is there a standard type?

0 Answers  


Fifty minutes ago if it was four times as many mints past 3 o clock. how many minutes is it to six o'clock n how....?????

3 Answers   TCS,


2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above

4 Answers   Siemens,


What is sorting in c plus plus?

0 Answers  


Categories