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

Explain how can I prevent another program from modifying part of a file that I am modifying?

0 Answers  


What is meaning of "Void main" in C Language.

24 Answers   Ford, GU, HCL, IBIBS, JUW, TCS,


Is c still relevant?

0 Answers  


Is main a keyword in c?

0 Answers  


what is the syallabus of computer science students in group- 1?

0 Answers  






What is a scope resolution operator in c?

0 Answers  


How do I access command-line arguments?

2 Answers   Bosch, Wipro,


Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 2. Enter alphanumeric characters and form 2 array alphaets and digits.Also print the count of each array.

0 Answers  


int x=sizeof(!5.856); What will value of variable x?

2 Answers  


How to create struct variables?

0 Answers  


main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?

7 Answers   AMCAT, HCL, Ramco, Zycus Infotech,


Does sprintf put null character?

0 Answers  


Categories