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 the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1477


What are header files? What are their uses?

1223


What is the -> in c?

1023


What is indirection? How many levels of pointers can you have?

1153


write a program to print data of 5 five students with structures?

2056


What is this pointer in c plus plus?

1101


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3697


What is volatile keyword in c?

1040


Where define directive used?

1102


what is recursion in C

1075


How many keywords (reserve words) are in c?

1146


What are control structures? What are the different types?

1099


Explain the priority queues?

1084


‎How to define structures? · ‎

1103


Explain how do you use a pointer to a function?

1118