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 within a single statement?

Answer Posted / srinidhi

a=(a+b)-(b=a);

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why functions are used in c?

1073


In a switch statement, what will happen if a break statement is omitted?

1008


Is fortran still used today?

1044


How a string is stored in c?

1019


What is difference between structure and union?

1082


What is a #include preprocessor?

1079


Explain how does flowchart help in writing a program?

1064


Are the outer parentheses in return statements really optional?

1054


What are the benefits of c language?

1112


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1036


What is the use of getchar functions?

1130


Is anything faster than c?

971


What is binary tree in c?

1041


What is c variable?

1000


What is wrong with this declaration?

1049