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=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}

Answer Posted / bala

56 93.

I will rewrite the above program for ur understand.

int x=20,y=35;
int x1,y1;
x1=y++ + x++; //this line y=35 and x=20 before assign the
value to x.
x=x1; // Value of x1=55, y=36 and x=21.
y1=++y + ++x;//this line y=37 and x=56 before assign the
value to y.
y=y1;// Value of x=56, y=37 and y1=93.
Finally x=56 and y=93

Is This Answer Correct ?    56 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hungarian notation? Is it worthwhile?

1234


What do you understand by friend-functions? How are they used?

1216


Why shouldn’t I start variable names with underscores?

1072


Why C language is a procedural language?

1051


What is structure of c program?

1174


What does printf does?

1261


What is the newline escape sequence?

1083


What are actual arguments?

1110


What is meant by initialization and how we initialize a variable?

1058


Can you please explain the difference between strcpy() and memcpy() function?

1082


Where register variables are stored in c?

975


What is the use of #include in c?

1093


How a string is stored in c?

1081


What are the preprocessor categories?

1069


What is the difference between Printf(..) and sprint(...) ?

1556