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

You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

1223


How do you traverse a btree in backward in-order?

1097


What is the type of this pointer in c++?

1112


What is format for defining a structure?

1136


Define token in c++.

1210


What is c++ used for in games?

1240


What is the v-ptr?

1214


How can you quickly find the number of elements stored in a static array?

1137


What is the meaning of c++?

1070


Is java the same as c++?

1037


What is the size of integer variable?

1100


What is the difference between the functions rand(), random(), srand() and randomize()?

1362


Explain virtual class and friend class.

1103


What is the difference between #define debug 0 and #undef debug?

1241


What are arrays c++?

1146