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 write the code of the program to swap two numbers
with in one statement?

Answer Posted / manoj kumar shukla

main()
{
int a=4,b=3;
a=a+b-(b=a);
printf("%d",a);
printf("%d",b);
}

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a rvalue?

1152


What are the general description for loop statement and available loop types in c?

1088


Why do we use header files in c?

1036


Explain what is #line used for?

1024


What is difference between Structure and Unions?

1207


How can I dynamically allocate arrays?

1049


Is null a keyword in c?

1155


What are header files why are they important?

1064


What do you mean by a local block?

1049


What is sorting in c plus plus?

946


Do you know null pointer?

986


differentiate built-in functions and user – defined functions.

1053


What are nested functions in c?

991


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3213


What is your stream meaning?

1153