软件水平考试程序员易错题(2018/7/25) |
第1题:下列字符列中,不是用来表达转义字符是( )
A、\\ B、\' C、074 D、\0 |
【单选题】: |
第2题:循环语句“for(x=0, y=0;(y!=123)||( x<4);x++);”的循环执行( )
A、无限次 B、不确定次 C、4次 D、3次 |
【单选题】: |
第3题:字符串”XyZ”在内存占用的字节数是( )
A、3 B、4 C、6 D、8 |
【单选题】: |
第4题:3.main()
{ int x1,x2,x3,x4; x1=x2=x3=x4=1; switch(x1) { case 1:switch(x2) { case 0:x3++;break; case 1:x4--; } case 2:x3++,x4--; } printf("%d%d",x3,x4); } |
【分析题】: |
第5题:struct stu
{ int num;char name[10];int age}; void py(struct stu *p) { printf("%s\n",(*p).name);} main() { struct stu student[3]={{1001,"Sun",25}, {1002,"Ling",23}, {1003,"Shen",22}; py(student+2); } |
【分析题】: |