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

阅读下面程序,则在执行时候的输出为【8】。 include"stdio.h" main() {intx=1,y=2,z=0; i


阅读下面程序,则在执行时候的输出为 【8】 。

#include "stdio.h"

main()

{int x=1,y=2,z=0;

if(x=2)z=x,x=y,y=z;

printf("%d,%d\n",x,y);}

参考答案
您可能感兴趣的试题
  • 阅读下列程序,则在执行后,程序的运行结果为 include "stdio.h" include "string.h" main() {ch

  • 阅读下列程序,则在执行后,程序的运行结果为 include "stdio.h" include "string.h" main() {ch

  • (35 )下面程序运行时,若输入 “ Visual Basic Programming ” ,则在窗体上输出的是Private Sub Co

  • 阅读下面程序段,则执行后输出的结果是include "stdio.h"main(){ char fun(char,int);c

  • 请阅读下面程序:x=0forxinrange(5):x+=1ifx==3:breakprint(x end=\)运行程序 程序的输出结果为()

  • 阅读下面的程序:def func():print(x)x=100func()执行上述语句后 输出的结果为( )。