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

Explain the priority queues?

1084


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

2001


What is the difference between pure virtual function and virtual function?

1136


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1259


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1595


cavium networks written test pattern ..

4088


How can I direct output to the printer?

1327


Write a program to show the change in position of a cursor using c

1076


write a c program for swapping two strings using pointer

2641


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1728


What is the use of typedef in structure in c?

978


What is difference between arrays and pointers?

1084


What are the different types of data structures in c?

1171


Explain why can’t constant values be used to define an array’s initial size?

1364


In which layer of the network datastructure format change is done

1895