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

下列程序的执行结果是() include<stdio.h> main() {int a,b,c; a=b=2; c=(a++) -1;printf("%d,


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

#include<stdio.h>

main()

{ int a,b,c;

a=b=2;

c=(a++) -1;printf("%d,%d",a,c);

c+=-a+++(b);printf("%d,%d",a,c);

}

A.3,14,1

B.3,14,2

C.2,04,1

D.2,14,1

参考答案
您可能感兴趣的试题
  • 请阅读下述代码,写出程序执行的结果#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=