C-Plus-Plus icon indicating copy to clipboard operation
C-Plus-Plus copied to clipboard

Added program to swap two numbers using bitwise

Open puneetripathi opened this issue 3 years ago • 1 comments

Detailed program to swap two numbers using bitwise operators. Also provided detailed proof of how the swapping happens. This program would be great for beginners to understand how we can use the bitwise operator to swap two numbers, as well as understand how the XOR operator works in general.

Description of Change

Checklist

  • [x] Added description of change
  • [x] Added file name matches File name guidelines
  • [x] Added tests and example, test must pass
  • [x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • [x] Relevant documentation/comments is changed or added
  • [x] PR title follows semantic commit guidelines
  • [x] Search previous suggestions before making a new one, as yours may be a duplicate.
  • [x] I acknowledge that all my contributions will be made under the project's license.

Notes:

puneetripathi avatar Oct 05 '22 11:10 puneetripathi

hi can you assign you i want to contribute

PrakarshSingh5 avatar Oct 10 '22 21:10 PrakarshSingh5

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 18 '23 00:02 github-actions[bot]

Please ping one of the maintainers once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions!

github-actions[bot] avatar Mar 07 '23 00:03 github-actions[bot]