完整形态

类型后根int

image.png

有无符号

unsigned %u

image.png

使用%u会约束输出无符号数据。如果是一个负数就会显示出错。 使用%d可正常显示数据

整数小结

image.png