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 program to swap Two numbers without using temp variable.

Answer Posted / chandan

a=a+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    1400 Yes 158 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare a variable that will hold string values?

1165


What is the advantage of c?

1122


Write a program to swap two numbers without using third variable in c?

1126


Tell me the use of bit field in c language?

1059


what is the structure pointer?

2120


What are volatile variables in c?

935


Is sizeof a keyword in c?

962


c program for searching a student details among 10 student details

2087


Explain spaghetti programming?

1242


Is it possible to have a function as a parameter in another function?

1070


What are the application of void data type in c?

1183


regarding pointers concept

2033


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2046


What’s a signal? Explain what do I use signals for?

1103


explain what is an endless loop?

1080