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 / s.divya

void swap(A,B)
{
A=*p;
B=*s;
getch();
}

Is This Answer Correct ?    1 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between realloc() and free() in c++?

1012


What do you mean by late binding?

1121


Is eclipse good for c++?

1042


How much do c++ programmers make?

1105


Define macro.

1081


What is microsoft c++ redistributable 2013?

1099


What is a node class in c++?

1067


How do c++ struct differs from the c++ class?

1192


What is a far pointer? where we use it?

1071


What is cin clear () in c++?

1215


What is the use of c++ programming language in real life?

1047


You run a shell on unix system. How would you tell which shell are you running?

1164


Can create new c++ operators?

1028


Write about the access privileges in c++ and also mention about its default access level?

1055


What are the storage qualifiers?

1160