This shows you the differences between two versions of the page.
cpp:variables [2014/02/20 13:22] 95.168.157.133 replaced <code> with <code cpp> / syntax highlight |
cpp:variables [2024/02/16 00:48] (current) |
||
---|---|---|---|
Line 52: | Line 52: | ||
Variables can even be equal to each other! | Variables can even be equal to each other! | ||
<code cpp> | <code cpp> | ||
- | int var1 = 5 ; | + | int var1 = 6 ; |
int var2 ; //another integer variable named "var2" | int var2 ; //another integer variable named "var2" | ||
var2 = var1 ; //the value of var2 is now the same as the value of var1 | var2 = var1 ; //the value of var2 is now the same as the value of var1 |