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 / rajitha

#include<stdio.h>
main()
{
int a=3,b=4;
b=a+b-(a=b);
printf("%d",a);
printf("%d",b);
}

Is This Answer Correct ?    19 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I get random integers in a certain range?

1063


What are the keywords in c?

1122


What does c mean in basketball?

996


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1073


How many levels of pointers have?

1042


Can math operations be performed on a void pointer?

1043


Is c programming hard?

1019


What is use of #include in c?

1162


How can I discover how many arguments a function was actually called with?

1066


What are the characteristics of arrays in c?

1049


Explain what are binary trees?

1075


What is difference between structure and union in c?

987


What is calloc in c?

1139


Tell me the use of bit field in c language?

1064


What are directives in c?

974