Python
Database
Operating System
Programming
Linux Command
Toolkit
Other
Keyboard Shortcuts
Open sidebar
Open user menu
Guess
Search
Dart
HTML Canvas
Redis
Bash
JavaScript
C++
Getting Started
Swap
int a = 5, b = 10; std::swap(a, b); // Outputs: a=10, b=5 std::cout << "a=" << a << ", b=" << b;
Comments
Add your comment
Post
Related
Also see
Miscellaneous
C++ Preprocessor
C++ Classes & Objects
C++ Functions
C++ Loops
C++ Conditionals
C++ Arrays
Getting Started