Unfortunately, it’s not completely portable. It’s usually integral, but it can be any “integer or real-floating type”.
Related Posts:
- Correct format specifier for double in printf
- Strings and character with printf
- printf() formatting for hexadecimal
- What is the argument for printf that formats a long?
- Is there a printf converter to print in binary format?
- Get the current time in C
- what is the unsigned datatype?
- Get the current time in C
- What does “%.*s” mean in printf?
- How to print a char array in C through printf?
- How can one print a size_t variable portably using the printf family?
- error: aggregate value used where an integer was expected
- Using floats with sprintf() in embedded C
- Printf width specifier to maintain precision of floating-point value
- Which of sprintf/snprintf is more secure?
- Does C have a string type?
- Execution of printf() and Segmentation Fault
- printf format specifiers for uint32_t and size_t
- The difference between n++ and ++n at the end of a while loop? (ANSI C)
- How many spaces for tab character(\t)?
- Working on code to calculate cosine with factorial sum
- warning: implicit declaration of function
- What exactly is the difference between “pass by reference” in C and in C++?
- What does “collect2: error: ld returned 1 exit status” mean?
- Floating point exception (core dumped)
- Scanf/Printf double variable C
- How to convert a string to integer in C?
- What is the behavior of integer division?
- Awesomium sdk download
- What is EOF in the C programming language?
- Bad File Descriptor with Linux Socket write() Bad File Descriptor C
- What is the difference between char s[] and char *s?
- Error “initializer element is not constant” when trying to initialize variable with const
- Cannot assign requested address – possible causes?
- need help understanding the movzbl call in this function
- What is the difference between read and pread in unix?
- What does “control reaches end of non-void function” mean?
- connect Error: “No route to host”
- Undefined reference to pow( ) in C, despite including math.h [duplicate]
- What is the printf format specifier for bool?
- C programming, error: called object is not a function or function pointer
- How to convert an int to string in C?
- warning: implicit declaration of function
- Process finished with exit code 11 | Error during malloc [duplicate]
- C dynamically growing array
- How to printf “unsigned long” in C?
- Why do I get an assertion failure?
- Difference between int32, int, int32_t, int8 and int8_t
- C language: float % float why expression must have integral type
- Reading \r (carriage return) vs \n (newline) from console with getc?
- lvalue required as left operand of assignment
- how to convert negative hexadecimal to decimal
- Invalid pointer error on invoking free() after malloc in C
- Why am I getting “undefined reference to sqrt” error even though I inclu de math.h header?
- How to initialize a struct in accordance with C programming language standards
- Expression preceding parentheses?
- Linux equivalent of I_PUSH
- In C, how should I read a text file and print all strings
- Understanding INADDR_ANY for socket programming
- The Definitive C Book Guide and List[
- When is it a good idea to use strdup (vs malloc / strcpy)
- expression must have integral type
- Why is %c used in C?
- What is Innermost loop in imperfectly nested loops?
- What’s wrong with my code? What is argv[1]?
- What can cause a “Resource temporarily unavailable” on sock send() command
- When and why to use malloc?
- How to solve error: expected identifier or ‘(‘
- C compile error: Id returned 1 exit status
- How do I concatenate const/literal strings in C?
- Efficient way to find task_struct by pid
- Why am I getting this memory access error ‘double free or corruption’?
- size of struct in C
- Split string with delimiters in C
- How to pause in C?
- (.text+0x20): undefined reference to `main’ and undefined reference to function
- Why am I getting this error: “data definition has no type or storage class”?
- I’m getting “Invalid Initializer”, what am I doing wrong?
- Error: initializer element is not computable at load time
- %i or %d to print integer in C using printf()?
- “No such file or directory” error in CodeBlocks
- How can you print multiple variables inside a string using printf?
- warning: passing argument ’from incompatible pointer type [enabled by default]’
- Return a `struct` from a function in C
- Uninitialized value was created by a heap allocation
- Scanning Multiple inputs from one line using scanf
- How to repeat a char using printf?
- PTHREAD_MUTEX_INITIALIZER vs pthread_mutex_init ( &mutex, param)
- How to concatenate string and int in C?
- execvp: bad address error
- How detect malloc failure?
- How to display hexadecimal numbers in C?
- A Simple, 2d cross-platform graphics library for c or c++?
- Reading float using scanf in c
- What do \t and \b do?
- write() to stdout and printf output not interleaved?
- fgetc(stdin) in a loop is producing strange behaviour
- Difference between “while” loop and “do while” loop
- Swapping 2 Bytes of Integer
- GDB no such file or directory