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);
}

what is the output?

Answer Posted / manishsoni

here first in
x = y++ + x++;
x=35+20;
x=55;

then x is incresed by 1;
x=56;
y=36

y=++y + ++x;
y=++36 + ++56;
y=37+57;

y=94;
x=57;
now the value of x = 57.
therefore,after performing all operatioins we get,
x==57 And y==94....

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c still used?

1101


Is main is user defined function?

1216


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1474


How can you be sure that a program follows the ANSI C standard?

1663


Explain what is the difference between text files and binary files?

1226


What are the types of operators in c?

1109


In C, What is the #line used for?

2338


What’s the special use of UNIONS?

1209


What are bitwise shift operators in c programming?

1140


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

1110


What is page thrashing?

1148


What does the error message "DGROUP exceeds 64K" mean?

1277


Under what circumstances does a name clash occur?

1279


Difference between macros and inline functions? Can a function be forced as inline?

1352


what is the significance of static storage class specifier?

2346