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...

Write a program to swap 2 chars without using a third
varable?
char *s = "A";
char *p = "B";

Answer Posted / answer and question

k=*s;
*s=*p;
*p=k;

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is using namespace std in c++?

1119


Which is better turbo c++ or dev c++?

1028


What is a driver program?

1074


What are features of c++?

1128


Is it possible to use a new for the reallocation of pointers ?

1013


Can java be faster than c++?

1127


Differentiate between a constructor and a destructor in c++.

996


Define namespace in c++?

1014


Write a program which uses functions like strcmp(), strcpy()? etc

1066


What does override mean in c++?

1039


Explain the volatile and mutable keywords.

1052


What is meant by const_cast?

1098


How a modifier is similar to mutator?

1131


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

1031


Is there finally in c++?

1061