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

[填空题]下面程序的运行结果是______。 #include<stdio.h> main( ) { int y,a; y=2,a=1; while(y--!=-1) {do{a*=y;a++;}while(y--);} printf("%d,%d",a,y);}

更多"下面程序的运行结果是______。 #include<stdio."的相关试题:

[填空题]

以下程序运行后的输出结果是()。
#include
#include
#include
main( )
{ char *p;int i;
p=(char*)malloc(sizeof(char)*20);
strcpy(p,"welcome");
for(i=6;i>=0;i--) putchar(*(p+i));
printf("/n"); free(p);
}


[单项选择]下面程序的运行结果是
#include<iostream.h>
Void main( )

int num=1;
int &ref=num;
ref=ref+2;
cout < < num;
num=num+3;
cout < < ref < <endl;

A) 13 B) 16 C) 36 D) 33
[单项选择]下面程序运行后的输出结果是()。
#include<stdio.h>
main( )
int a[5]=1,0,4,2,0,b[5]=1,2,3,4,5,i,s=0;
for(i=0;i<5;i++)s=s+b[a[i]];
printf("%d/n",s);

A. 12
B. 15
C. 11
D. 8
[单项选择]运行下面程序时,从键盘输入字母H,则输出结果是( )。
#include
main( )
char ch;
ch=getchar( );
switch(ch)
case ’H’:printf("Hello!/n");
case ’G’:printf("Good morning/n");
default:printf("Bye Bye!/n");


A. Hello!
B. Hello!Good Moring!
C. Hello!Good morning!Bye Bye!
D. Hello!Bye Bye!
[填空题]下面程序的运行结果是 【13】
#include<iostream.h>
void main( )

char s[]="9876",*p;
for(p=s;p<s+2;p++)
cout<<p;

[单项选择]下面程序的运行结果是( )。
#include<stdio.h>
main( )
static char a[]="Languagef" ,b[]=" programe";
char*p1,*p2;int k;
p1=a;p2=b;
for(k=0;k<=7;k++)
if(*(p1+k)==*(p2+k)) printf("%c",*(p1+k));
A. gae
B. ga
C. Language
D. 有语法错
[填空题]下面程序运行后的输出结果是______。
#include<stdio.h>
main( )
int a[]=1,2,3,4,5,6,*k[3],i=1;
while(i<4)
k[i-1]=&a[2*i-1];
printf("%d",*k[i-1]);
i++;


[填空题]下面程序的运行结果是______。 #include<stdio.h> main( ) {int a=25; fun(&a); } fun(int *x) { printf("%d/n",++*x); }
[填空题]下面程序的运行结果是______。
#include <stdio.h>
main( )
int y,a;
y=2,a=1;
while(y--!=-1)
doa*=y;a++; while(y--);
printf("%d,%d",a,y);

我来回答:

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

订单号:

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