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

下列程序的运行结果是() include<stdio.h> main() {int x=5,a=1,b=2,c=5,d=0; if(a<b) if(b!=3)


下列程序的运行结果是()

#include<stdio.h>

main()

{ int x=5,a=1,b=2,c=5,d=0;

if(a<b)

if(b!=3)

if(!c)

x=1;

else

if(d) x=l;

else x=-1;

printf("%d",x);

}

A.-1

B.0

C.1

D.不确定的值

参考答案
您可能感兴趣的试题
  • 请阅读下述代码,写出程序执行的结果#include <iostream> using namespace std; class C

  • 请阅读下述代码,写出程序执行的结果#include <iostream> using namespace std; class C

  • 有下列程序,功能是把输入的十进制长整型数以十六进制的形式输出,完成程序 #include"std

  • 下列程序中划线处正确的语句是()。#include using namespace std;class Base{public:vo

  • 以下程序的输出结果是()。#include#includeusing namespace std;void func(cha

  • 给出下面程序的输出结果。include<iostream>using namespace std;void main(){int num=0 i=