About 50 results
Open links in new tab
  1. c - Correct format specifier for double in printf - Stack Overflow

    Format %lf in printf was not supported in old (pre-C99) versions of C language, which created superficial "inconsistency" between format specifiers for double in printf and scanf.

  2. c - printf format specifiers for uint32_t and size_t - Stack Overflow

    Oct 19, 2016 · printf format specifiers for uint32_t and size_t Asked 15 years, 6 months ago Modified 4 years, 2 months ago Viewed 373k times

  3. c - Printf format specifiers - Stack Overflow

    Jan 16, 2021 · I've been trying to cobble together the format of printf into a sort of linear format. Is the following a correct understanding of the possible printf formats? % <justification: [-]?> <sig...

  4. c - Unexpected compiler warning - printf format specifiers - Stack …

    Jul 15, 2025 · Each formatting instruction in a printf format string, such as %lu, is, in the terminology of the C standard, a conversion specification. It tells printf how to convert the “raw bytes” of the valued …

  5. How to printf "unsigned long" in C? - Stack Overflow

    Jul 9, 2010 · Out of all the combinations you tried, %ld and %lu are the only ones which are valid printf format specifiers at all. %lu (long unsigned decimal), %lx or %lX (long hex with lowercase or …

  6. Format specifier guide for C - Stack Overflow

    Dec 18, 2018 · Is there a complete online guide for C format specifiers for every type of data and for all cases? I only found partial and contrasting references that doesn't explain all possible cases.

  7. c - What is the conversion specifier for printf that formats a long ...

    Sep 1, 2008 · The printf function takes an argument type, such as %d or %i for a signed int. However, I don't see anything for a long value.

  8. c - printf's missing binary format specifiers: `%b` and `%B` - Stack ...

    Dec 23, 2022 · I recently found this announcement for glibc ver 2.35; it states that ver 2.35 incorporates the binary conversion format specifiers %b and %B: printf-family functions now support the %b …

  9. Format specifiers for data type BYTE, WORD and DWORD in c-language?

    Aug 27, 2016 · In C-language, what are the most appropriate format specifiers for data type BYTE, WORD and DWORD to be used with printf and scanf functions? I am having a hard time displaying …

  10. c - Width and precision format specifiers for printf - Stack Overflow

    Feb 10, 2022 · Width and precision format specifiers for printf [duplicate] Asked 3 years, 11 months ago Modified 3 years, 11 months ago Viewed 4k times