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 / sateesndaruh varma ba

x=x++ it means the x value is first assignto x and then increment by 1

so here in this given value of x=10
it become" x= 11" in output

y=++y it means pre increment so first y value is incremented and than it will assignto y

finally y=16

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me the use of bit field in c language?

1020


How do we declare variables in c?

1010


Do you know the purpose of 'register' keyword?

975


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

977


What is the best style for code layout in c?

1053


What is difference between %d and %i in c?

1183


Is c procedural or functional?

981


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

2080


cavium networks written test pattern ..

4030


What is the difference between text and binary i/o?

1002


Why array is used in c?

975


what do you mean by enumeration constant?

960


Which are low level languages?

1047


What is #line in c?

963


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2842