Previous

C++ Format Specifiers

Next
Data Type  Format specifier
char %c
int %i or %d
float %f
double %lf or % f
string  %s
long int %ld
octal %o
hexadecima number %x or %X
   
  • It is a special characters.
  • It is always begian with % symbol.
  • There are used to specify the format of data.
  • It is used in input /output.