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...


main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}

output??

Answer Posted / subha raman

the answer is 10 and 16..
in the case of postfix,the value will be displayed first
[that is the difference between postfix and prefix]..
when the main function is again called and the value is
displayed it will b'com..11 and 17..

Is This Answer Correct ?    18 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are pointers really faster than arrays?

1033


What is c language in simple words?

1068


What are volatile variables in c?

953


What is the difference between c and python?

1184


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1036


What is #error and use of it?

1285


formula to convert 2500mmh2o into m3/hr

1000


How can variables be characterized?

2193


Tell me when is a void pointer used?

1185


What is the use of pragma in embedded c?

1063


Why malloc is faster than calloc?

1068


What is multidimensional arrays

1130


How can I write a function that takes a format string and a variable number of arguments?

1060


How can I get the current date or time of day in a c program?

1227


What is the purpose of void in c?

1071