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

How can I copy just a portion of a string?

1288


What is the use of putchar function?

1037


code for quick sort?

1997


Why is it usually a bad idea to use gets()? Suggest a workaround.

1723


What are the primitive data types in c?

1034


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1087


Explain what is a program flowchart and explain how does it help in writing a program?

1070


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1828


What is a pointer variable in c language?

1059


Are the variables argc and argv are always local to main?

987


What is exit() function?

982


What does sizeof int return?

1036


In C language, a variable name cannot contain?

1243


What is the benefit of using an enum rather than a #define constant?

1196


Is return a keyword in c?

1049