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

write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

2330


What is a namespace in c++?

1969


What is object in c++ wikipedia?

967


What is a terminating character in c++?

1343


What are virtual functions in c++?

1140


What is an associative container in c++?

1025


Explain how to initialize a const data member.

1094


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

2495


Describe private, protected and public – the differences and give examples.

1150


What is the best c c++ compiler for windows?

1023


What are references in c++? What is a local reference?

1010


What are the advantages of c++ over c?

1038


What is the use of class in c++?

1032


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

766


How can we read/write Structures from/to data files?

1090