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

How do you define a class in c++?

1078


What are the important differences between c++ and java?

1142


What is c++ & why it is used?

1088


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

1031


What is the difference between an array and a list?

1026


What is the difference between interpreters and compilers?

1173


What is the maximum combined length of command line arguments including the space between adjacent arguments?

995


What do you mean by friend class & friend function in c++?

1055


In a function declaration, what does extern mean?

1057


which operator is used for performing an exponential operation a) > b) ^ c) none

1058


What is different in C++, compare with unix?

1089


Write my own zero-argument manipulator that should work same as hex?

1049


Explain abstraction.

1106


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

1066


How are pointers type-cast?

1110