Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is file in c language?

1003


What’s the special use of UNIONS?

1152


Explain how can I manipulate strings of multibyte characters?

1206


How can I call a function with an argument list built up at run time?

1242


When should a type cast be used?

1010


How can I discover how many arguments a function was actually called with?

1066


What is a sequential access file?

1173


What are the key features in c programming language?

1070


Explain about C function prototype?

1086


What is the meaning of ?

1037


How can I write functions that take a variable number of arguments?

1128


how can I convert a string to a number?

1082


How to write c functions that modify head pointer of a linked list?

983


Differentiate Source Codes from Object Codes

1567


What is the use of sizeof () in c?

1048