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

while calculating the x value,x & y values are post
incremented.So the values of x & y are added and then
incremented i.e. x=56,y=36
while calculating the y value,x & y values are
preincremtned,so x & y values are incremented and then
added i.e. x=57,y=37.
so x=57
y=57+37=94.

Is This Answer Correct ?    58 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why clrscr is used in c?

1020


can we change the default calling convention in c if yes than how.........?

2542


What is bin sh c?

1049


What is a char c?

1049


What is the size of empty structure in c?

1091


What are local static variables? How can you use them?

1155


How can I implement sets or arrays of bits?

1050


Why do we use c for the speed of light?

1218


What does void main return?

1134


Write program to remove duplicate in an array?

1089


What is a class c rental property?

1102


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2587


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1071


What is bubble sort in c?

1061


What is the purpose of ftell?

1091