printf (); Used to display the contents of a format string
Note: Parameters cannot be wrapped, or a warning will be given.
More than the number of placeholders in the format string displays a value in a meaningless value format string where the placeholder is less than the number of expressions only displays the placeholder values conversion description format%m.px%-M.PXM: Minimum field width, minimum number of characters to display, number of characters to display less than M right (front empty If the character to be displayed is greater than M, the actual width will be expanded automatically. The decimal point is also counted as one of the M. -Number: Is the left alignment accuracy (p): Several after the decimal point
scanf () Typical scarf usage: the conversion specifier is typically connected to the compiler and cannot check the parameters correctly. An expression is a pointer. Scant mode of work: pattern matching method, controlled by the format string, starting from the left to process the information of the string, for each of the conversion is read from the input and skip the space until you encounter the item does not belong to stop each read will skip the space the last carriage is not read to it as the next time s CANF calls the white space in the start format string Inode replaces 0 to a number of actual white space characters other characters match other characters
Re-learning C language--printf,scanf