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

下列程序的运行结果为 #include voidmain() { inta=2: intb=a+1; cout$amp;<amp;$lt; } A.


下列程序的运行结果为

#include

void main()

{

int a=2:

int b=a+1;

cout $amp;}

A.0.66667

B.0

C.0.7

D.0.66666666…

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

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

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

  • 下列程序的运行结果为() include<stdio.h> main() {struc tdate {int year,month,day; )today;

  • ● 下面程序运行后的输出结果是 (59) 。 #include <stdio.h> #include <string.h> voi

  • 下列程序的运行结果为 #include voidprint(doublea) { cout$amp;<amp;$lt;++a; } voidprint(i

  • 下列程序的运行结果为 #include inti=0; classA{ public: A()}i++;} }; voidmain() { A