当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

有以下程序#include<stdio.h>main(){int x=011;printf(“%d\n” ++x);}程序运行后的输出结果


有以下程序

#include<stdio.h>

main()

{int x=011;

printf(“%d\n”,++x);

}

程序运行后的输出结果是

A.12

B.11

C.10

D.9

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • (30 )有以下程序# include <stdio.h>main (){ int b [3][3]= { O , 1 , 2 , 0 , 1 , 2 ,

  • (30 )有以下程序# include &lt;stdio.h&gt;main (){ int b [3][3]= { O , 1 , 2 , 0 , 1 , 2 ,

  • 有以下程序 #include<stdio.h> main() {int c; while((c=getchar())!=′ ) {switch(c-′2′)

  • 有以下程序#include<stdio.h>main(){int a=7; while(a--); printf(\%d\n a);}程序运行后

  • 有以下程序: #include<stdio.h> main( ) {int X=011; printf(\%d\n ++x); } 程序运

  • 有以下程序#include <stdio.h>main(){ int num=0; while( num <=2) { num++; printf(\%