Interactive Computer Science Tutoring
Learn programming concepts interactively
Menu
C Variables & Statements
Master memory allocation and program control in C
Reset
Learning Streak: 0
Concepts Mastered: 0
Enter Debug Mode
Variables & Types
Operators
Control Flow
Variable Declaration Lab
Create and initialize variables in C's type system
int age
25
float score
98.5
char initial
A
bool isActive
true
Learning Challenges
Custom Variable
Create int
Data Type Information
int
4 bytes
Integer (whole numbers)
Range:
-2,147,483,648 to 2,147,483,647
Examples:
42, -17, 0, 1000
Test Knowledge
float
4 bytes
Floating point (decimals)
Range:
±3.4E±38 (7 digits precision)
Examples:
3.14, -0.5, 2.71828, 0.0
Test Knowledge
char
1 byte
Single character
Range:
-128 to 127 (or 0 to 255)
Examples:
'A', 'x', '\n', '7'
Test Knowledge
bool
1 byte
Boolean (true/false)
Range:
0 (false) or 1 (true)
Examples:
true, false, 1, 0
Test Knowledge
Memory Layout Visualization
Simple
Watch how variables occupy actual memory locations
Memory Stack (Each block = 4 bytes)
Generated C Code
See your interactive actions as real C code with syntax validation
No code yet
Start creating variables to see C code generated!