C in 100 Seconds: Variables — int float char double | Episode 2
0views
002:22
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Four types in 100 seconds. int for whole numbers, float for decimals, char for single characters, double for precision. Each one printed
with its format specifier.
Declare a variable, assign a value, print it with printf. Percent d for int, dot two f for float, percent c for char, dot eight f for
double. Compile, run, see the output.
Student code: https://github.com/GoCelesteAI/c-in-100-seconds/tree/main/episode02
What You'll Learn:
• int — whole numbers, no decimals
• float — decimal numbers, ~7 digits precision
• char — single character, single quotes
• double — like float but ~15 digits precision
• %d, %.2f, %c, %.8f — format specifiers for printf
Next: Episode 3 — Format Specifiers
#c #programming #100seconds #learnc #variables #types #int #float #char #double #printf #tutorial
Tags
c programming, c variables, c types, int float char double, format specifiers, printf c, c tutorial 2026, c beginner, 100 seconds, learn c,
coding tutorial
Tags
c programmingc variablesc typesint float char doubleformat specifiersprintf cc tutorial 2026c beginner100 secondslearn ccoding tutorial