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

Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.

0 Answers  


const char * char * const What is the differnce between the above tow?.

6 Answers   Ramco, TCS,


hello friends what do u mean by BUS ERROR i got this error while i am doing my program in DATA STRUCTURES

2 Answers   Wipro,


Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?

7 Answers  


What is the use of sizeof?

0 Answers  






Read two numbers from keyboard and find maximum of them?

1 Answers  


#define f(x) main() { printf("\n%d",f(2+2)); }

5 Answers  


What is time null in c?

0 Answers  


please can some one guide me, to the answer Write a C program to enter 15 numbers as an input from the keyboard and program will find and print odd numbers and their average. i have studied while and do while loop for loop if and else if switch

2 Answers  


Between macros and functions,which is better to use and why?

0 Answers  


What do you mean by dynamic memory allocation in c? What functions are used?

0 Answers  


What does c mean in standard form?

0 Answers  


Categories