设int x=6;,能正确输出x值的语句是

设int x=6;,能正确输出x值的语句是
A、printf("%s",x);
B、printf("%d",x);
C、putchar('x');
D、printf("%f",x);
【正确答案】:B