题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-06-28 00:00:21

[单项选择]下面程序的运行结果为( )。
#include <iostream>
using namespace std;
void main( )
for(int a =0,x =0; !x&&a < =10; a ++ );
cout << a << endl;
A. 0
B. 1
C. 10
D. 11

更多"下面程序的运行结果为( )。 #include <iostream>"的相关试题:

[单项选择]下面程序的运行结果为( )。
#include <iostream>
using namespace std;
void main( )
for(int a =0,x =0; !x&&a < =10; a ++ );
cout << a << endl;
A. 0
B. 1
C. 10
D. 11
[单项选择]下面程序的输出结果是( )
#include<iostream>
using namespace std;
int main( )

int s:
for(int k=2;k<6;k+=2)
s=1;
for(int j=k, j<6;j++)s+=j;

cout<<s<<end1:

A. 9
B. 1
C. 11
D. 10
[单项选择]以下程序输出结果是( ):
#include<iostream>
using namespace std;
void add(int X,int y,int *z)

*z=y+x;

int main( )

int a,b,c;
add(8,4,&
A. ;
B. ;
C. ;
[单项选择]下列程序的输出结果为( )。
#include (iostream)
using namespace std;
void main( )
char,a[ ] = "hello" ," the" ," world" ;
char * * pa = a:
pa + +;
cout << * pa << ENDL;

A. hello
B. the
C. world
D. hellotheworld
[单项选择]下面程序的运行结果为()。
#include <iostream>
using namespace std;
void main( )
for(int a =0,x =0; !x&&a < =10; a ++ );
cout << a << endl;
A. 0     
B. 1    
C. 10    
D. 11
[单项选择]下面程序的运行结果为( )。
#include<iostream>
using namespace std;
void main( )
int a=1;
switch(
[单项选择]下面程序的运行结果是( )。
#include<iostream>
using namespace std;
class A

int a;
public:
A( )a=0;1
A(int a
A. a )
[单项选择]下面程序运行后输出的结果是( )。
#include "stdio.h"
#include "string.h"
void fun(char *s);
main( )

char array[80];
char *p;
p=array;
fun(p);
puts(p);

void fun(char *s)

strcpy(s,"look");

A. s
B. 1111*
C. look
D. 出错
[单项选择]下面程序的运行结果是
#include<stdio.h>
#include<string.h>
main( )
char*s1="AbDeG";
char*s2="AbdEg";
s1+=2;s2+=2;
printf("%d/n",strcmp(s1,s2));

A. 正数
B. 负数
C. 零
D. 不确定的值
[单项选择]下面程序的运行结果是( )。
#include<stdio.h>
#include<string.h>
main( )
char*s1="abDuj";
char*s2="ABdUG";
int t;
t=strcmp(s1,s2);
printf("%d",t);

A. 正数
B. 负数
C. 零
D. 不确定的值
[单项选择]下面程序的运行结果为
#include<iostream.h>
class A

int num;
public:
A(int i)num=i;
A(A &
A. num = a.num+ +;<
[单项选择]下面程序的运行结果为
  # include <iostream.h>
  class A
  
    int num;
  public:
    A(inti)hum=i;
    A(A&
A. num=a.num++;
[单项选择]下面程序的运行结果是
    #include" iostream.h"
    #define sum(a,b)a * b
    void main( )
     int x;
     x=sam(1+2,3);
     cout < < x;

A. 0
B. 9
C. 7
D. 5

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码