The Printf function formats its parameters under the control of the output format format and prints them on the standard output device (monitor, console, etc.). The printf function is the most commonly used and powerful library function in C language. Printf () is an output function in the C language. Its function is to output some data of any type to the terminal (output device, usually the screen). The syntax format of the printf () function is as follows: printf (format control, output list) 1) Format control. 1. The general format of the printf function (due to its long length and comprehensive content, it is recommended to collect it) The general format of the printf function is: printf (format control string, output value parameter list); such as: printf (f=%f,c=%f,f,c); others.
The JawDropping Transformation of the 'Teen Wolf' Cast Unveiling
Printf () is a C language standard library function that is used to output formatted strings to standard output (that is, the standard output file, corresponding to the terminal screen). The head of printf () is... What is Printf? Its full name is "print formatted", which means formatted output, that is, printing the content in a specified format to the console window when the program is running. Simple example printf (Hello, world!); The output format of the printf function in C language consists of a format string and a parameter list. The format string contains ordinary characters and format specifiers (starting with %), which control the output form of the parameters.
M.n (represents an integer): m refers to the field width, that is, the number of characters occupied by the corresponding output item on the output device. n refers to the precision, used to describe the number of decimal places in the output real number.