Learn programming concepts interactively
Master operators, literals, and expression evaluation with visual precedence
Fixed values inserted directly into source code (42, "hello", true)
Symbols that perform operations on operands (+, -, *, ==, &&)
Order of operations - higher precedence operators execute first
#include <iostream>#include <string>using namespace std;int main() {return 0;}
No operations yet
Start by adding or modifying elements
Integers: 42, Doubles: 3.14, Strings: "text", Chars: 'a', Bools: true/false
Remember PEMDAS: (), *, /, +, -, comparisons, logical operations, assignment.
C++ is type-safe. You can't add strings and numbers without conversion.
Use parentheses to override precedence: (3 + 4) * 2 vs 3 + 4 * 2