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

how to swap 2 numbers in a single statement?

Answer Posted / pedda

t=a;
a=b;
b=t;
t means temporary value

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we declare variable anywhere in c?

979


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1404


Can a local variable be volatile in c?

994


Why does notstrcat(string, "!");Work?

1148


What is c language & why it is used?

1116


What does void main () mean?

1240


What does %d do?

1279


What is a floating point in c?

1075


Which is better pointer or array?

1028


What is c language in simple words?

1068


Differentiate between declaring a variable and defining a variable?

1044


What are local static variables? How can you use them?

1151


What is the purpose of scanf() and printf() functions?

1245


What is the use of #define preprocessor in c?

1081


How do you determine a file’s attributes?

1087