Загрузка...

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

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

Видео C in 100 Seconds: Same Data Different Output — Format Specifiers | Episode 3 канала Codegiz — Built by Claude AI
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять