Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
C Programming

Format Specifiers in C

Match printf/scanf specifiers to types (%d, %f, %c, %s, %zu…).

Format Specifiers in C — a practical guide to C format specifiers with clear examples you can reuse in real projects.

C Programming Tutorial Series (18/102). Prefer one article? Read the complete C programming tutorial.

Short description

Mismatched specifiers cause undefined behavior.

Specifiers

%d / %i → int
%u → unsigned
%f / %lf → float/double (printf/scanf differ)
%c → char
%s → string
%p → pointer

Leave a reply

Your email address will not be published. Required fields are marked *