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...

how to swap two strings without using any third variable ?

Answer Posted / sivaraj

Is the Answer 1 posted by ashutosh works for nagative numbers ?
best answer :

a=a^b;
b=a^b;
a=a^b;

Is This Answer Correct ?    7 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean to declare a destructor as static?

1017


Write a c program for binary addition of two 8 bit numbers.

4062


what do you mean by volatile variable?

981


what are the iterator and generic algorithms.

1883


What do you mean by overhead in c++?

1029


What do you mean by “this” pointer?

1032


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2450


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1964


What is called array?

1018


What would happen on forgetting [], while deallocating an array through new?

1029


What is increment operator in c++?

969


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3790


How do I run a program in notepad ++?

1043


Can we specify variable field width in a scanf() format string? If possible how?

1153


What is meant by forward referencing and when should it be used?

949