3. SCREEN OUTPUT AND ESCAPE SEQUENCE printf(âsamahan mo akong pa-bloodâ); printf(âtest⊠baket???â); printf(âpara malaman mo ikaw ang type koâ); samahan mo _ _ akong _ _ pa-blood _ _ test⊠_ _ _ baket??? _ _ _ para malaman _ _ mo ikaw _ _ ang _ â type ko _ â _ _
4. F ORMAT SPECIFIERS F ORMAT SPECIFIERS start s with a percent sign % followed by a character that specified the format type printf(â twenty five %dâ, <argument list>) FORMAT SPECIFIERS %c a single character %s string of charcters %i or %d integer number %f floating point %% prints a percent sign FORMAT SPECIFIER FORMAT TYPE
5. F ORMAT SPECIFIERS FORMAT SPECIFIER % c printf(â charcater % c â, âaâ); printf(â character % c â, â5â); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ character _ a _ _ character _ 5 _
6. F ORMAT SPECIFIERS FORMAT SPECIFIER % s printf(â string is % s â, â SUPERman â Â ); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ string is _ SUPERman _ _
7. F ORMAT SPECIFIERS FORMAT SPECIFIER % i or %d printf(â integer % i â, 5); printf(â integer % d â, 25); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ integer _ 5 _ _ integer _ 25 _
8. F ORMAT SPECIFIERS FORMAT SPECIFIER % f printf(â float % f â, 5.3); printf(â float with two decimal places % .2f â, 5.345 ); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ float _ 5.300000 _ _ float with two decimal places _ 5.35 _ NUMBER OF DECIMAL
9. F ORMAT SPECIFIERS FORMAT SPECIFIER % % printf(â Printing percent %% â ); FORMAT SPECIFIER FORMAT TYPE _ Printing percent _ % _ _
10. F ORMAT SPECIFIERS <argument list> contains exactly the same number of arguments as there are format specifiers , and the format specifiers and argument list are matched in order printf(â Product of 5 and 25 is % i â, 5 * 25 ); printf(â Product of %d and %d is % i â , 5, 25 , 5 * 25 ); _ Product of 5 and 25 is _ 125 _ _ Product of _ 5 _ and _ 25 _ is _ 125 _
11. F ORMAT SPECIFIERS If t he item of data type that does not directly correspond to the format specification , you will get unpredictable result printf(â integer % f â, 2); Abnormal program termination printf(â My name is % d â, â ARVIN â ); _ My name is _ 419 _