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 a program for swapping two strings without
using 3rd variable and without using string functions.

Answer Posted / biswambar

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

Is This Answer Correct ?    44 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to capitalise first letter of each word in a given string?

1910


Can a file other than a .h file be included with #include?

1153


What are the different file extensions involved when programming in C?

1237


Can you return null in c?

1144


What are data structures in c and how to use them?

1153


What are identifiers and keywords in c?

1086


What is the scope of an external variable in c?

1032


What is pointer in c?

1177


How can I open a file so that other programs can update it at the same time?

1170


What is a void * in c?

1061


Can I initialize unions?

1025


What is function what are the types of function?

980


Explain the difference between getch() and getche() in c?

984


Differentiate call by value and call by reference?

948


Are comments included during the compilation stage and placed in the EXE file as well?

1066