首页 › 答案 › 题库 › 知到智慧树 › 未分类

若a为整型变量,则语句a=-2printf("%d",a)()。

若a为整型变量,则语句a=-2printf("%d",a)()。
A.赋值不合法
B.输出值为-2
C.输出为不确定值
D.输出值为2
正确答案:输出值为-2