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 / fazlur rahaman naik

x = 57 and y = 94.

because the value of x = y++ + x++(35 + 20) is 55 and then
it incremented here x++ i.e.56 and the value of y = 36 and
then the value of y = ++y + ++x(57 + 37) = 94.

Is This Answer Correct ?    38 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to set file pointer to beginning c?

1252


What is the difference between void main and main in c?

1215


How to declare a variable?

1074


how to write optimum code to divide a 50 digit number with a 25 digit number??

3302


How do you use a 'Local Block'?

1230


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3375


What is a sequential access file?

1246


What is #include stdlib h?

1148


List the difference between a While & Do While loops?

1156


What is a stream in c programming?

1233


What is the explanation for cyclic nature of data types in c?

1265


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1138


What is the argument of a function in c?

1106


Why static variable is used in c?

1089


Explain what does it mean when a pointer is used in an if statement?

1108