stdin
: standard input(keyboard -input).
2)stdout
: standard output (screen- output).
3)stderr
: standard error (screen-errors).Format Specifier | Description | Supported data types |
---|---|---|
%d | Signed integerint | short,unsigned short,int,long |
%hi | Signed integer(short) | short |
%hu | Unsigned integer(short) | unsigned short |
%i | Signed integer(short) | short,unsigned short,int,long |
%l or %ld or %li | Signed integer | long |
%lu | Unsigned integer | unsigned int, unsigned long |
%u | Unsigned integer(short) | unsigned int, unsigned long |
%lli,%lld | Signed integer(short) | long long |
%llu | Unsigned integer(short) | unsigned long long |
%o | Octal representation of integer(short) | short,unsigned short,int,unsigned int,long |
%x oor %X | Hexadecimal representation of Unsigned integer(short) | short,unsigned short,int,unsigned int,long |
%c | Character | char,unsigned char |
%p | Address of pointer to void void* | void* |
%s | String | char* |
%e or %E | Scientific notatiom of float values | float,double |
%f | Floating point | float |
%g or %G | Similar as %e or %E | float,double |
%lf | Floating point | double |
%Lf | Floating point | long double |
%n | Prints nothing | |
%% | Prints % character |