【单选题】先手工分析程序的运行结果,再上机验证分析是否正确: #include int main() { short i=-1; printf(”dec:%hd,oct:%ho,hex:%hx,unsigned:%hu\n”, i,i,i,i); return 0; }
A.
dec:-1,oct:177777,hex:ffff,unsigned:65535
B.
dec:-1,oct:177777,hex:ffff,unsigned:-1
D.
dec:-1,oct:1,hex:1,unsigned:1
【简答题】分析程序: 以上程序中文件包含语句是( ),无参的宏定义语句是( )带参的宏定义语句是( ) 程序运行的结果为( ) 若程序改成: # include "stdio.h" # define X 2 # define fun(i) X*(i)*(i) void main( ) { int c=1, d=2; printf("%d \n", fun(c+...