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

10 5
10 5

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is d scanf?

1146


Is printf a keyword?

1261


What is meant by int main ()?

1262


write a c program for swapping two strings using pointer

2692


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

1104


What is a null string in c?

1105


What is getch () for?

1318


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1313


Explain the array representation of a binary tree in C.

1287


What is the total generic pointer type?

1213


Explain the difference between malloc() and calloc() in c?

1104


what is different between auto and local static? why should we use local static?

1175


Explain enumerated types in c language?

1106


Explain how do you sort filenames in a directory?

1078


What is the difference between variable declaration and variable definition in c?

1108