SLIDE: 01 / 04
PROGRAMIERDS_OS v1.0.4
TOPIC: BASICS_01
> Variables and Constants
Welcome to the core of the system. Today we will learn how programs remember things.
📦
💾
# Variables
A variable is a space in memory with a name. Its value can change during execution.
// Código C
int score = 0;
score = 10; // ¡Cambió!
📦
Name: score
0
🧊
Name: PI
3.14159
lock READ_ONLY
# Constants
A constant is a value that cannot change once defined.
// Definición
const float PI = 3.14159;
// ERROR: PI = 4.0;
FINAL REPORT
VARIABLE
- ✅ Dynamic values
- ✅ Updatable
- "Like your bank balance"
CONSTANT
- ✅ Fixed values
- ✅ Immutable
- "Like the laws of physics"
CRT_MODE: ACTIVE // MEMORY_BUFFER: OPTIMAL