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 / 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 |
Post New Answer View All Answers
What does s c mean in text?
What is an lvalue?
How main function is called in c?
How can I avoid the abort, retry, fail messages?
What is function what are the types of function?
What is the heap in c?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
Explain low-order bytes.
Is main is a keyword in c?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Can an array be an Ivalue?
What are pointers? What are different types of pointers?
Who developed c language and when?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Do you know the use of fflush() function?