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

What is d scanf?

1041


Explain why C language is procedural?

1176


What is function in c with example?

1106


ATM machine and railway reservation class/object diagram

5214


What is modeling?

1014


Should I learn c before c++?

1192


Is c++ based on c?

1045


What do you mean by command line argument?

1117


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2069


What are runtime error?

1103


simple program of graphics and their output display

1962


Who is the main contributor in designing the c language after dennis ritchie?

967


What are the three constants used in c?

954


List some of the static data structures in C?

1171


Explain what is meant by 'bit masking'?

1155