17:42 Exchanging values by XOR | |
| #include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; a^=b; b=a^b; a^=b; cout<<endl<<a<<endl<<b<<endl; return 0; } | |
|
| |
| Total comments: 0 | |
|
Site menu
Section categories
Search
Our poll
Statistics
Total online: 1 Guests: 1 Users: 0 |
Main » 2011 June 10 » Exchanging values by XOR
|
||||||||||||||