C language 3rd days for ios development and ios 3rd days for ios development
- Naming rules and specifications for variables
- Supplement the use of printf Functions
% 0md: m is an integer. If it is not enough, it is supplemented with 0. %. nf: n is a number indicating the number of digits after the decimal point. %. nlf: n is a number indicating the number of digits after the decimal point. % g: When the floating point integer is printed, the excess 0 is removed, and up to six valid digits are retained.
- Details of scanf Functions
- Use the scanf function to receive multiple input data at a time
Note: 1>. once a separator is specified, the specified separator must be used for a long time. Space and carriage return cannot be used. 2>. if you use the scanf function to input more than one data at a time, it can only be numbers (integer and floating point type). If char is mixed in, a problem may occur.
- Exchange the values of two variables
- Char data involved in arithmetic operations
- Value assignment operator