WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("%d%d%d",x,y,z);
}

Answers were Sorted based on User's Feedback



WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf..

Answer / friend

4,3,0

Is This Answer Correct ?    7 Yes 14 No

WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf..

Answer / vara

3,3,0

Is This Answer Correct ?    22 Yes 32 No

WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf..

Answer / jasmeet singh

when assigning value to z, x is used with a "post"
decrement. so the original value for the x i.e. 4 is taken
for the calculation and then the decrement is done.
so answer is
4,3,1

Is This Answer Correct ?    3 Yes 15 No

WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf..

Answer / strawberry

the answer is 4,3,1

Is This Answer Correct ?    17 Yes 32 No

WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf..

Answer / sandhya

the answer is
4 3 1
because
we have already asigned vale to x&y in begning so directly it will print 4 for x & 3 for y it becomes 3-2=1

Is This Answer Correct ?    3 Yes 29 No

Post New Answer

More C C++ Errors Interview Questions

What is the code for following o/p * * * * * * * * * * * * * * * *

1 Answers  


which typw of errors ? & how to solve it ?

0 Answers  


how to convert decimal to binary in c using while loop without using array

50 Answers   Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,


printy(a=3,a=2)

3 Answers  


void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..

32 Answers   College School Exams Tests, CTS, HCL, iGate, SmartData,


who was the present cheif governor of reserve bank of india

6 Answers   State Bank Of India SBI,


Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;

3 Answers  


loop1: { x=i<n?(i++):0; printf("%d",i); exit(x); continue; } Error- misplaced continue. Doubt-1.will the exit(x) be executed for all values of x 2.will this statement go out of the program.

5 Answers   CMC,


UINT i,j; i = j = 0; i = ( i++ > ++j ) ? i++ : i--; explain pls....

5 Answers  


WHAT WILL BE THE OUTPUT OF THE FOLLOWING QUESTION void main() { int x=4,y=3,z; z=x-- -y; printf("%d%d%d",x,y,z); }

25 Answers   HCL,


#include<>stdio.h> #include<>conio.h> { printf("hello"); void main() getch(); } what the out put of this program and why ......plz clear my answer

10 Answers   Wipro,


what is syntax error?

3 Answers  


Categories