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 / gita

the answer is 10,16.
because x=x++;
means first assign after that that is incremented.
in case of y=++y;
first increment operation is performed. after that assigned.

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is anagram in c?

926


How many types of errors are there in c language? Explain

990


Can a variable be both static and volatile in c?

1044


Explain what is the difference between a string and an array?

1171


What is .obj file in c?

1087


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

1098


What do you mean by dynamic memory allocation in c?

1105


What is the purpose of clrscr () printf () and getch ()?

1073


How can I implement sets or arrays of bits?

1048


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1134


When should you not use a type cast?

1127


What is #line?

1059


What is the right type to use for boolean values in c?

1040


Can we initialize extern variable in c?

1138


what is different between auto and local static? why should we use local static?

1128