Академический Документы
Профессиональный Документы
Культура Документы
escape sequences:
these are the special symbol having specific
meanings for the system.
Escape sequences start with the symbol \.
e.g.
\n use for new line
\t use to give spaces.
Example:
Printf(have \n a\n bad day. \n today its a bit
hot);
it will print the text in two lines.
Printf(\t Name : \t\t CECOS);
Format specifier:
Format specifier always start with the
symbol % having specific meaning for the
system.
e.g.
Expression:2 +2
e.g:
printf(addition of 2+2 is
%d , 2+2)
printf(value is %d , 123);
printf(percentage = %f ,89.5);
printf(subtraction is = %d,12+23)