C语言打印int值 C实例程序 C语言打印八进制和十六机制格式 C语言打印int值 /* print1.c-displays some properties of printf() */ #include <stdio.h> int main(void) { int ten = 10; int two = 2; printf("Doing it right: "); printf("%d minus %d is %d\n", ten, 2, ten - two ); printf("Doing it wrong: "); printf("%d minus %d is %d\n", ten ); // forgot 2 arguments return 0; } C实例程序 C语言打印八进制和十六机制格式