C in 100 Seconds: Same Data Different Output — Format Specifiers | Episode 3

4views
1likes
0
2:20
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Seven format specifiers in 100 seconds. Same number, different specifier, different output. %d prints decimal. %x prints hex. %.2f controls decimal places. %s prints strings. %p shows the memory address. %10d pads to ten characters wide. %-10d left-aligns. printf is how C talks to the screen — the format specifier tells it how. Student code: https://github.com/GoCelesteAI/c-in-100-seconds/tree/main/episode03 What You'll Learn: • %d — integer as decimal • %x — integer as hexadecimal • %.2f — float with precision control • %s — string (char array) • %p — pointer (memory address) • %10d — right-aligned width padding • %-10d — left-aligned width padding Next: Episode 4 — Arithmetic Operators #c #programming #100seconds #learnc #printf #formatspecifiers #hex #pointer #tutorial Tags c format specifiers, printf c, %d %x %f %s %p, width padding printf, c tutorial 2026, c beginner, 100 seconds, learn c, coding tutorial, hexadecimal c

Tags

c format specifiersprintf c%d %x %f %s %pwidth padding printfc tutorial 2026c beginner100 secondslearn ccoding tutorialhexadecimal c
Back to tutorials

Duration

2:20

Published

April 6, 2026

Added to Codegiz

April 8, 2026

Open in YouTube