#include <stdio.h>
int main()
{
printf(%d, 55);
return 0;
}
执行结果为:
55
%d
转换说明符还可用于输出声明为整数数据类型的变量的内容。
#include <stdio.h>
int main()
{
int operand1;
operand1 = 29;
printf(The value of operand1 is %d, operand1);
return 0;
}