Home Segments Index Top Previous Next

Appendix B:

Formatted Display

The following table lists the specifications that are used in C++'s printf statements:

Specification Argument type What is displayed
%i int integer
%o int octal integer
%x, %X int hexadecimal integer
%c int character
%s char pointer string
%f double floating-point number
%e, %E double floating-point number with exponent
%% the % character