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...

#define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
{
int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
}

int swap2(int a,int b)
{
int temp;
temp=a;
b=a;
a=temp;
return;
}

what are the outputs?

Answer Posted / chitra

10 5
5 5

Is This Answer Correct ?    3 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3786


What is the purpose of sprintf() function?

1189


Where are some collections of useful code fragments and examples?

1198


Explain what is the difference between null and nul?

1217


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1963


How can I implement a delay, or time a users response, with sub-second resolution?

1121


Explain what is the difference between a string and an array?

1230


What are pointers? What are stacks and queues?

1222


The file stdio.h, what does it contain?

1220


Explain low-order bytes.

1100


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

4054


Is there a built-in function in C that can be used for sorting data?

1343


How do I read the arrow keys? What about function keys?

1153


What is struct node in c?

1129


What is the importance of c in your views?

1242