Hacktoberfest2021 icon indicating copy to clipboard operation
Hacktoberfest2021 copied to clipboard

Added Swapping Two Strings in C++

Open stutimi opened this issue 4 months ago • 0 comments

This C++ code demonstrates how to swap two strings of equal length using the XOR operator at the character level. The XOR operation is applied to each corresponding character of the strings to swap their values without using a temporary variable. This technique creatively extends the XOR operation to work with string data. Kindly assign me this

stutimi avatar Oct 11 '24 10:10 stutimi