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 line in c preprocessor?

997


What is the value of h?

987


Where in memory are my variables stored?

1112


How can I read data from data files with particular formats?

1002


What is c basic?

1124


What are the types of assignment statements?

1005


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

978


Can we access the array using a pointer in c language?

995


How many bytes is a struct in c?

1104


What is the main difference between calloc () and malloc ()?

1097


Explain indirection?

1063


What are called c variables?

1011


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2714


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1868


What is static and auto variables in c?

1020