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

write a prgram of swapping with 2 valiables

Answer Posted / devi

i can swap da 2 variables in singe instr
main()
{
int a,b;
a=(a=(a+b),b=(a-b),a-b);
-------
-------
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1378


Can we initialize extern variable in c?

1076


What is volatile variable in c?

1054


Explain how can I convert a number to a string?

1100


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

2186


What is pointer & why it is used?

1061


Why should I use standard library functions instead of writing my own?

1205


What are different storage class specifiers in c?

1042


What is a program flowchart and how does it help in writing a program?

1082


What is the difference between volatile and const volatile?

936


What is dynamic memory allocation?

1283


Write a program to check prime number in c programming?

1029


What does != Mean in c?

987


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

1200


What the advantages of using Unions?

1164