We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f12b9c commit 6f74a5aCopy full SHA for 6f74a5a
sorting/bubble_sort.cpp
@@ -14,10 +14,12 @@
14
* An additional variable is required for this operation. x = 5, y = 10.
15
* We want x = 10, y = 5. Here we create the most variable to do it.
16
*
17
+ * ```cpp
18
* int z;
19
* z = x;
20
* x = y;
21
* y = z;
22
+ * ```
23
24
* The above process is a typical displacement process.
25
* When x assigns the value to x, the old value of x is lost.
0 commit comments