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 / m.kirthika

given z=x-- -y
therefore x--=4-1=3;
and given y=3;
so z =3-3=0;
but x doesn't change its value.
so the correct answer is 430

Is This Answer Correct ?    0 Yes 6 No

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

Answer / gaurav

3 3 4

Is This Answer Correct ?    1 Yes 9 No

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

Answer / vignesh1988i

the output will be 3 3 0


thank u

Is This Answer Correct ?    5 Yes 18 No

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

Answer / sudarshan

4 3 -1 this will be the output of this program

Is This Answer Correct ?    0 Yes 17 No

Post New Answer

More C Interview Questions

Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

2 Answers   Bosch,


What is the purpose of sprintf() function?

0 Answers  


What Is The Difference Between Null And Void Pointer?

0 Answers   TCS,


wap in c to accept a number display the total count of digit

4 Answers  


What has to put when we are inserting as assembly language code into the C code? or When we are inserting as assembly language code into the C code we have to insert one thing at the start and of the assembly language. What are they?

2 Answers  






What are the types of functions in c?

0 Answers  


What is actual argument?

0 Answers  


The differences between Windows XP and Windows Visa

8 Answers   HCL,


What does char * * argv mean in c?

0 Answers  


please tell me the logic for this C program : INPUT (string):ABCD OUTPUT :BCDA CDAB DABC

2 Answers   Mphasis,


What is meant by keywords in c?

0 Answers  


What is a good way to implement complex numbers in c?

0 Answers  


Categories