how to swap two strings without using any third variable ?

Answer Posted / ruchi

Hi ashutosh,
This technique is used to swap numeric values without using
3rd vaariable not for strings .
We can do it by using binary shift operators.

Is This Answer Correct ?    8 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ pass by reference or value?

774


What is the difference between struct and class?

1030


What do you mean by inheritance in c++?

808


Can I learn c++ without learning c?

748


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

812


How come you find out if a linked-list is a cycle or not?

769


What is c++ runtime?

826


Which c++ operator cannot overload?

736


What is conditions when using boolean operators?

819


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

833


Explain the term memory alignment?

900


Which compiler does turbo c++ use?

798


How is computer programming useful in real life?

773


What do the header files usually contains?

805


Why c++ is better than c language?

778