2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								title: Format Specifiers
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Format Specifiers
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-10 03:19:01 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Format specifiers define the type of data that is to be printed on standard output. We need format specifiers in order to take the formatted input or print the formatted output. Format specifiers are also called as format string. Format specifier is used during input and output. It is a way to tell the compiler what type of data is in a variable during taking input using scanf() or printing using printf(). Some examples are %c, %d, %f, etc.
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Character format specifier : %c
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h>
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main()
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    char ch = 'A'; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%c\n", ch); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								A
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Integer format specifier : %d, %i
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    int x = 45, y = 90; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%d\n", x); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%i\n", x); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								Output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								45
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								45
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Double format specifier : %f, %e or %E
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    float a = 12.67; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%f\n", a); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%e\n", a); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								Output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								12.670000
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								1.267000e+01
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Unsigned Octal number for integer : %o
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    int a = 67; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%o\n", a); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								103
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Unsigned Hexadecimal for integer : %x, %X
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    int a = 15; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%x\n", a); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								f
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								String printing : %s
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    char a[] = "nitesh"; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%s\n", a); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								nitesh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								----------------------------------------
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								scanf(char *format, arg1, arg2, …)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								decimal integer : %d
							 
						 
					
						
							
								
									
										
										
										
											2019-06-28 11:02:59 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								There are also many type of integers like short int, long int(%ld), and long long int(%lld), all of these have their unsigned type also.
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    int a = 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    scanf("%d", &a);  // input is 45 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%d\n", a); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								45
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Integer may be octal or in hexadecimal : %i
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    int a = 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    scanf("%i", &a);  // input is 017 (octal of 15 ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%d\n", a); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    scanf("%i", &a);  // input is 0xf (hexadecimal of 15 ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%d\n", a); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								15
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								15
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Floating data type : %f, %e(double), %lf(long double)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    float a = 0.0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    scanf("%f", &a);  // input is 45.65 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%f\n", a); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								0.000000
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								String input : %s
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    char str[20]; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    scanf("%s", str); // input is nitesh 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%s\n", str); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								nitesh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Character input : %c
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```c
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								#include <stdio.h> 
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								int main() 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    char ch; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    scanf("%c", &ch);  // input is A 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    printf("%c\n", ch); 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    return 0; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
									
										
										
										
											2018-11-29 14:35:06 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								A
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The % specifiers that you can use in ANSI C are:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| Specifier | Used For |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								|:-------------:|:-------------:|
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %c | a single character|
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %s | a string |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %hi| short(signed)|
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %hu| short(unsigned)|
							 
						 
					
						
							
								
									
										
										
										
											2019-06-28 11:02:59 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								| %lf| double|
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								| %Lf| long double |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %n | prints nothing |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %d | a decimal integer|
							 
						 
					
						
							
								
									
										
										
										
											2019-06-28 11:02:59 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								| %u | a decimal integer(unsigned)|
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %ld| a long decimal integer|
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %lu| a long dcimal integr(unsigned)|
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								|%%lld| a long long integer|
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								|%%llu| a long long integer(unsigned)|
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								| %o | an octal (base 8) integer|
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %x | a hexadecimal (base 16) integer |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %p | an address (or pointer) |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %f | a floating point number for floats |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %u | int unsigned decimal |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %e | a floating point number in scientific notation |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %E | a floating point number in scientific notation |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| %% | The % symbol! |