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 happens if you free a pointer twice?

1083


What is the purpose of clrscr () printf () and getch ()?

1073


Explain how can I manipulate strings of multibyte characters?

1206


What is integer constants?

1080


What are identifiers in c?

1204


What are the usage of pointer in c?

1200


What are linked lists in c?

1130


write a c program to find the sum of five entered numbers using an array named number

2144


Is using exit() the same as using return?

1360


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

1117


What is calloc malloc realloc in c?

1059


what do u mean by Direct access files? then can u explain about Direct Access Files?

2096


Is c object oriented?

970


Why are all header files not declared in every c program?

1103


How do I read the arrow keys? What about function keys?

1086