Lesson 5 of 50 · c
Variables & Constants
Duration: 6 mins
Variables store values of a specific type and must be declared before use. const makes a variable read‑only after initialization.
int age = 30; // mutable variable
const double PI = 3.14159; // constant, cannot be reassigned