Gang Of Coders
Home
About Us
Contact Us
All Printf Solutions on Gang of Coders
Total of 101 Printf Solutions
JavaScript equivalent to printf/String.Format
Javascript
Printf
string.format
Why does printf not flush after the call unless a newline is in the format string?
C
Printf
Flush
What is the printf format specifier for bool?
C++
C
Boolean
Printf
What is the argument for printf that formats a long?
C
Printf
Long Integer
Correct format specifier for double in printf
C
Floating Point
Printf
Double
Format Specifiers
Is there a printf converter to print in binary format?
C
Printf
How can one print a size_t variable portably using the printf family?
C
Printf
'printf' vs. 'cout' in C++
C++
Printf
Iostream
Cout
Stdio
How do you format an unsigned long long int using printf?
C
Syntax
Printf
Format Specifiers
Long Long
How to printf "unsigned long" in C?
C
Printf
Long Integer
Unsigned
Format Specifiers
Printing leading 0's in C
C
Printf
Printing 1 to 1000 without loop or conditionals
C++
C
Printf
How to escape the % (percent) sign in C's printf
C
Printf
Format String
Difference between fprintf, printf and sprintf?
C
Io
Stream
Printf
printf() formatting for hexadecimal
C
Printf
Hex
How to print a float with 2 decimal places in Java?
Java
Formatting
Printf
Decimal Point
What is the difference between conversion specifiers %i and %d in formatted IO functions (*printf / *scanf)
C++
C
Printf
Scanf
Format Specifiers
PHP sprintf escaping %
Php
Escaping
Printf
Why use sprintf function in PHP?
Php
Printf
What is the difference between printf() and puts() in C?
C
String
Output
Printf
Puts
printf with std::string?
C++
String
Namespaces
Printf
Std
How do you allow spaces to be entered using scanf?
C
String
Printf
Scanf
Whitespace
How I can print to stderr in C?
C
Printf
Stderr
Is there a way to specify how many characters of a string to print out using printf()?
C++
C
Printf
Java: Literal percent sign in printf statement
Java
Printf
Escaping
What is the use of the %n format specifier in C?
C
Printf
Format String
What does "%.*s" mean in printf?
C
Printf
Format Specifiers
Left-pad printf with spaces
C
Formatting
Printf
Printf width specifier to maintain precision of floating-point value
C
Floating Point
Printf
C99
Floating Point-Precision
How does the below program output `C89` when compiled in C89 mode and `C99` when compiled in C99 mode?
C
Printf
Comments
C99
C89
Avoid trailing zeroes in printf()
C
Printf
What's up with Java's "%n" in printf?
Java
Newline
Printf
Padding characters in printf
Bash
Shell
Printf
Using printf with a non-null terminated string
C
String
Format
Printf
Printing hexadecimal characters in C
C
Hex
Printf
printf format specifiers for uint32_t and size_t
C
Printf
Using colors with printf
Linux
Bash
Colors
Printf
The "backspace" escape character '\b': unexpected behavior?
C
Language Agnostic
Printf
Special Characters
Backspace
Python's many ways of string formatting — are the older ones (going to be) deprecated?
Python
Printf
String Formatting
Deprecated
Backwards Compatibility
How does Haskell printf work?
Haskell
Printf
Variadic Functions
Polyvariadic
How to format strings using printf() to get equal length in the output
C
String
Printf
Pretty Print
Why is printf with a single argument (without conversion specifiers) deprecated?
C
Security
Printf
Format Specifiers
Puts
Clean code to printf size_t in C++ (or: Nearest equivalent of C99's %z in C++)
C++
Printf
Size T
In C can a long printf statement be broken up into multiple lines?
C
Printf
Integer ASCII value to character in BASH using printf
Bash
Ascii
Printf
Results of printf() and system() are in the wrong order when output is redirected to a file
C
Linux
Printf
Child Process
Io Redirection
C++ equivalent of sprintf?
C++
Printf
How to repeat a char using printf?
C
Printf
How to pass variable number of arguments to printf/sprintf
C++
C
Printf
Variadic Functions
printf anomaly after "fork()"
C
Linux
Unix
Printf
Fork
Why does printf("%f",0); give undefined behavior?
C++
C
Printf
Implicit Conversion
Undefined Behavior
How does this program work?
C++
C
Memory
Printf
Endianness
How to append strings using sprintf?
C
Printf
Two decimal places using printf( )
C++
C
Printf
Decimal
How to print a string in C++
C++
String
Printf
Is it possible to print out only a certain section of a C-string, without making a separate substring?
C
Printf
C Strings
why does %d stand for Integer?
C
Formatting
Printf
How to fmt.Printf an integer with thousands comma
String
Go
Formatting
Printf
How do I print a non-null-terminated string using printf?
C
String
Printf
Mmh, who are you PRIu64?
C
Macros
Printf
Is there a sprintf equivalent for node.js
Printf
node.js
How to print an unsigned char in C?
C
Printf
Why wasn't a specifier for `float` defined in `printf`?
C
Floating Point
Printf
C Standard-Library
Where is `%p` useful with printf?
C++
C
Printf
What is the purpose of the h and hh modifiers for printf?
C
Printf
Variadic Functions
Promotions
Format Specifiers
Code for printf function in C
C
Printf
Stdio
Printf long long int in C with GCC?
C
Gcc
Printf
C99
Why do I have to specify data type each time in C to printf() and scanf()?
C
Compiler Construction
Printf
Scanf
printf and long double
C
Gcc
Printf
Long Double
find lacks the option -printf, now what?
Macos
Find
Printf
Set variable text column width in printf
C
Size
Printf
Why use asprintf() instead of sprintf()?
C
Printf
Gnu
Asprintf
How to use printf with NSString
Objective C
Cocoa Touch
Nsstring
Printf
Nslog
Strings and character with printf
C
Printf
Getting a weird percent sign in printf output in terminal with C
C
Printf
Zsh
Arduino sprintf float not formatting
C++
Arduino
Printf
call printf using va_list
C
Printf
Variadic Functions
%i or %d to print integer in C using printf()?
C
Console
Integer
Int
Printf
'printf' with leading zeros in C
C
Formatting
Printf
What does the %*s format specifier mean?
C
Printf
Format Specifiers
How to display hexadecimal numbers in C?
C
Format
Integer
Printf
Hex
Which of sprintf/snprintf is more secure?
C
Security
Unix
Printf
Secure Coding
Can I display the value of an enum with printf()?
C
Printf
Enums
sprintf - repeating arguments
Php
Printf
Alternatives to type casting when formatting NS(U)Integer on 32 and 64 bit architectures?
Ios
Objective C
Printf
Nsinteger
What's the meaning of the %m formatting specifier?
C
Printf
Glibc
Errno
Format Specifiers
How to printf a memory address in C
C
Pointers
Printf
Memory Address
Unary Operator
How do I print some text in bash and pad it with spaces to a certain width?
Bash
Variables
Printing
Formatting
Printf
Does C have a string type?
C
String
Char
Printf
Strcpy
What is the correct printf specifier for printing pid_t
C
Io
Printf
Pid
What primitive data type is time_t?
C
Types
Printf
Time T
unsigned long long type printing in hexadecimal format
C
Integer
Printf
C Programming: Forward variable argument list
C
Variables
Arguments
Printf
Forward
Extra leading zeros when printing float using printf?
C++
C
Floating Point
Formatting
Printf
printf string, variable length item
C
Format
Printf
How to use C++ std::ostream with printf-like formatting?
C++
Formatting
Printf
Ostream
System.out.printf vs System.out.format
Java
Format
Printf
mixing cout and printf for faster output
C++
Performance
Printf
Cout
Determining sprintf buffer size - what's the standard?
C
Int
Printf
C complex number and printf
C
Printf
Complex Numbers
Correct printf format specifier for size_t: %zu or %Iu?
C++
C
Visual Studio-2010
Printf
Format Specifiers