ProgIntro

Input Output Constructs

Escape Sequences

Following table lists escape sequences and their description:

Escape Sequence Description Escape Sequence Description Escape Sequence Description
\a Alarm \t tab \? question mark
\b backspace \v vertical tab \000 octal number
\f Form feed \ backslash \xhh hexadecimal number
\n new line ' single quote \0 Null
\r carriage return " double quote    

Format specifiers

Following table lists the format specifiers and their description:

Format Specifier Description
%d Integer Format Specifier
%f Float Format Specifier
%c Character Format Specifier
%s String Format Specifier
%u Unsigned Integer Format Specifier
%ld Long Int Format Specifier