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 / srinath, hyd

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 ?    7 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program to rearrange the array such way that all even elements should come first and next come odd

2284


What is the default value of local and global variables in c?

1049


What are the rules for identifiers in c?

1073


What is register variable in c language?

1034


What is the usage of the pointer in c?

1144


Why do we use return in c?

1012


How do you determine a file’s attributes?

1089


What are the 4 types of programming language?

1135


What is the use of a conditional inclusion statement in C?

1070


Why enum is used in c?

970


What is the significance of an algorithm to C programming?

1048


What is wrong in this statement?

1156


What is the need of structure in c?

1126


What is difference between scanf and gets?

1285


What is sizeof c?

1081