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

Describe the advantages of operator overloading?

1081


Can comments be longer than one line?

1127


What is difference between c++ 11 and c++ 14?

1172


What is a singleton class c++?

1093


Define 'std'.

1225


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

1262


What is difference between rand () and srand ()?

1149


What is an inline function in c++?

1162


Do you know what is overriding?

1298


What is a container class? What are the types of container classes in c++?

1364


What are structures and unions?

1066


How much do c++ programmers make?

1163


What is a dynamic binding in c++?

1004


What is flag in computer?

1117


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

1103