Learn programming concepts interactively
Master variable declaration, initialization, and memory concepts
Named storage locations that hold values in memory
Define what kind of data a variable can store (int, double, string, etc.)
Variables occupy space in memory with unique addresses
Whole numbers (-2,147,483,648 to 2,147,483,647)
Accessible within current function
No variables created yet
Create your first variable above!
#include <iostream>#include <string>int main() {return 0;}
No operations yet
Start by adding or modifying elements
Use descriptive names like 'studentAge' instead of 'a'. Follow camelCase convention.
Use int for whole numbers, double for decimals, string for text, bool for true/false.
Always initialize variables with values to avoid undefined behavior.
Variables are only accessible within their scope. Global scope = everywhere, function scope = within function, block scope = within .