formated-string
title: "courses/c-course - formated-string.md"
- **fileName**: formated-string
- **Created on**: 2024-06-06 08:55:56
The format specifier in C is used to tell the compiler about the type of data
Format Specifier | Description |
---|---|
%c | For character type. |
%d | For signed integer type. |
%e or %E | For scientific notation of floats. |
%f | For float type. |
%g or %G | For float type with the current precision. |
%i | Unsigned integer. |
%ld or %li | Long. |
%lf | Double. |
%Lf | Long double. |
%lu | Unsigned int or unsigned long. |
%lli or %lld | Long long. |
%llu | Unsigned long long. |
%o | Octal representation. |
%p | Pointer. |
%s | String. |
%u | Unsigned int. |
%x or %X | Hexadecimal representation. |
%n | Prints nothing. |
%% | Prints % character. |
continue: if-switch.md
before: stdio-dataTypes.md