what is the output of the following program?
#include<stdio.h>
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
}

Answers were Sorted based on User's Feedback



what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / poorna

Ans:3 3 1

bcoz

z=4-- -3; z=4-3;
z=1;

and x=3
there fore answer is 3 3 1

Is This Answer Correct ?    42 Yes 5 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / vignesh1988i

SORRY YHE OUTPUT WILL BE 3 3 1

Is This Answer Correct ?    20 Yes 4 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / aa

3 3 1

Is This Answer Correct ?    12 Yes 2 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / ravi chandra

x=4
y=3
z=x-- -y;

x-- means at first the left hand value will be equal to x
i.e., z=x and then the value of x gets decrement..
z=x-- -y
z=4-- -3
z=4-3 and x=x-1
z=1 and x=3
the y value remains same y=3
therefore x=3 y=3 and z=1

Is This Answer Correct ?    9 Yes 0 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / yogesh bansal

yes, correct answer is 3 3 1

Is This Answer Correct ?    9 Yes 1 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / amit

331

Is This Answer Correct ?    3 Yes 0 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / vinay.k

yes answer is 3 3 1.

Is This Answer Correct ?    2 Yes 0 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / kartik

hi friends upto me....

X=4
Y=3
Z=0

Is This Answer Correct ?    1 Yes 0 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / sudarshan

4 3 1

Is This Answer Correct ?    0 Yes 1 No

what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,..

Answer / guest

431

Is This Answer Correct ?    13 Yes 15 No

Post New Answer

More C Interview Questions

write a c program that prints all multiples of 3between 1 and 50.

5 Answers  


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

0 Answers  


What is sizeof c?

0 Answers  


What is volatile variable in c?

0 Answers  


How to create struct variables?

0 Answers  






how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

0 Answers  


The __________ attribute is used to announce variables based on definitions of columns in a table?

0 Answers  


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

0 Answers  


What are static variables in c?

0 Answers  


What is the use of define in c?

0 Answers  


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

0 Answers  


what is linkage error when it occurs in c program

3 Answers  


Categories