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 / nikhil godani

a=a+b;
b=a-b;
a=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 does %p mean c?

1020


What are compound statements?

1088


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

1172


When c language was developed?

1012


How do you define a string?

1051


Can you please explain the scope of static variables?

1000


What is a node in c?

922


Why doesnt that code work?

1079


Explain how do you use a pointer to a function?

1056


What is "Hungarian Notation"?

1040


In C programming, what command or code can be used to determine if a number of odd or even?

992


What are global variables?

1120


provide an example of the Group by clause, when would you use this clause

2130


Does c have enums?

1030


Describe newline escape sequence with a sample program?

1073