C examples for Language Basics:printf
Specifier | Meaning | Types Converted |
---|---|---|
%c | Single character | char |
%d | Signed decimal integer | int, short |
%ld | Signed long decimal integer | long |
%f | Decimal floating-point number | float, double |
%s | Character string | char arrays |
%u | Unsigned decimal integer | unsigned int, unsigned short |
%lu | Unsigned long decimal integer | unsigned long |