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);
}

Answer Posted / kartik

hi friends upto me....

X=4
Y=3
Z=0

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program for finding factorial of a number.

629


How do you determine the length of a string value that was stored in a variable?

647


What do you mean by command line argument?

636


What is typedef example?

612


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1489






Where in memory are my variables stored?

631


Are global variables static in c?

667


Tell me can the size of an array be declared at runtime?

592


int i=10; printf("%d %d %d", i, i=20, i);

1006


Which is more efficient, a switch statement or an if else chain?

572


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

712


What is non linear data structure in c?

567


Explain what is the difference between #include and #include 'file' ?

579


Write a code of a general series where the next element is the sum of last k terms.

589


Is malloc memset faster than calloc?

605