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


Please Help Members By Posting Answers For Below Questions

What does s c mean in text?

614


What is an lvalue?

636


How main function is called in c?

630


How can I avoid the abort, retry, fail messages?

663


What is function what are the types of function?

560






What is the heap in c?

645


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2122


Explain low-order bytes.

623


Is main is a keyword in c?

610


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

656


Can an array be an Ivalue?

666


What are pointers? What are different types of pointers?

632


Who developed c language and when?

586


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

623


Do you know the use of fflush() function?

603