1, %d means output according to the actual length of decimal integer data.
2.%u output unsigned integer. You can also use %d when outputting unsigned integers. In this case, unsigned integers are converted into signed numbers and then output.
3.%ld means to output long integer data.
4.%p Memory address of the output variable.
Extended data
1, octal In C language, the output format of octal is %o, octal is a number starting with 0, and the numbers after 0 should be less than 8, at most 7.
2. The output format in hexadecimal is %x, the number in hexadecimal is 0x 12, and this 0 is also zero. The special feature of hexadecimal is that 1-9 is a pure number, and 10- 15 is represented by a, b, c, d, e and f. ..
4. The d in% d is not an integer, but a decimal (10).