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

x=y++ + x++;

here we should assign the value and then the increment
the value and the new value should be stored in a specified
variable....
here it is......
X= 35 (value=36 is stored in y) + 20 ( value=21
is stored in x);
X=55
NOw the value of x=55..and Y=36..the next expression
changes to like this...

Y= 37+56=93

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I generate floating-point random numbers?

1048


What is the c language function prototype?

1044


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4625


List the variables are used for writing doubly linked list program.

1970


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2110


Why do we use int main?

1046


What is c system32 taskhostw exe?

979


How will you divide two numbers in a MACRO?

1084


Why is c called c not d or e?

1052


What is restrict keyword in c?

1053


Describe explain how arrays can be passed to a user defined function

1042


What is string function in c?

948


How can I manipulate strings of multibyte characters?

1081


Ow can I insert or delete a line (or record) in the middle of a file?

957


What is calloc in c?

1081