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 / jaya prakash

57 94


{x=y++ + x++;}
equal to
{
x=y+x;//35+20
x++; //56
y++; //36
}


y=++y + ++x;
equal to
{
++y;//37
++x;//57
y=y+x;//37+57
}

So x=57
y=94

Is This Answer Correct ?    223 Yes 59 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is time null in c?

1042


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1694


I came across some code that puts a (void) cast before each call to printf. Why?

1181


What are the advantages of using macro in c language?

1094


What is a far pointer in c?

1009


The file stdio.h, what does it contain?

1138


What is the use of clrscr?

1087


What is difference between && and & in c?

1073


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2213


How many types of functions are there in c?

1101


Why do we need arrays in c?

1121


How can I access an I o board directly?

1063


What are dangling pointers in c?

1171


Is c still relevant?

1056


How can you increase the size of a dynamically allocated array?

1157