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

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

Is This Answer Correct ?    33 Yes 42 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c method?

984


Explain what’s a signal? Explain what do I use signals for?

1137


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1250


Why does this code crash?

1075


what is the height of tree if leaf node is at level 3. please explain

2137


What is a program flowchart and how does it help in writing a program?

1129


How can a program be made to print the line number where an error occurs?

1074


How can a process change an environment variable in its caller?

1174


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2434


Are bit fields portable?

1148


How are pointers declared in c?

1045


write a c program for swapping two strings using pointer

2616


Write a program to print factorial of given number without using recursion?

980


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

1272


Why doesnt this code work?

1050