网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

试题10

以下程序运行后的输出结果是______.

#include <stdio.h>

main()

{char a;

for(a=0; a<15; a+=5)

{putchar(a+’A’);}

printf(“\n”);

}


参考答案

更多 “ 试题10以下程序运行后的输出结果是______.#include stdio.hmain(){char a;for(a=0; a15; a+=5){putchar(a+’A’);}printf(“\n”);} ” 相关考题
考题 以下程序的输出结果是【】。 include using namespace std; int main() {char S[]="abcde 以下程序的输出结果是【 】。include <iostream>using namespace std;int main(){char S[ ]="abcdef";s[3]='\0';cout<<s<<end1;return 0;}

考题 以下程序运行后的输出结果是【】。 include using namespace std; int main() {int i=10, 以下程序运行后的输出结果是【 】。include<iostream>using namespace std;int main(){int i=10,i:0;do{j=j+i;i--;}while(i>2);cout<<j<<end1;return 0;}

考题 以下程序运行后的输出结果是【】。 include void main() { char a[]="abcdabcabfgacd"; 以下程序运行后的输出结果是【 】。include<iostream.h>void main(){char a[]="abcdabcabfgacd";int i 1=0,i2=0,i=0;while (a[i]){if (a[i]=='a')il++;if (a[i]=='b')i2++;i++;}cout<<il<<' '<<i2<<endl;}

考题 以下程序运行后的输出结果是【】include main ( ) {char a[] ="123456789", *p;int i =0; 以下程序运行后的输出结果是【 】include <stdio.h>main ( ){ char a[] ="123456789", *p;int i =0;p=a;while( * p){ if(i%2 ==0) *p='*';p++;i++;}puts(a);}

考题 下面程序运行输出的结果是【】。 include using namespace std; int main(){char a[]="C 下面程序运行输出的结果是【 】。include <iostream>using namespace std;int main(){char a[]="Chinese";a[3]='\0';cout<<a<<endl;return 0;}

考题 以下程序的输出结果是【】。 include include void main 0 { char s[50]; st 以下程序的输出结果是【 】。include<iostream.h>include <string.h>void main 0 {char s[50];strcpy(s[O], "No" );strcpy(s[1], "123" );strcpy (s[2], "23456" );cout<<s;}

考题 有以下程序 include main( ) { printf("%d\n",NULL); } 程序运行后的输出结果是 有以下程序#include <stdio.h>main( ){ printf("%d\n",NULL); }程序运行后的输出结果是A.0B.1C.-1D.NULL没定义,出错

考题 有以下程序includeincludevoid main( ){char*p="abcde\0fghjik\0"; cou 有以下程序 #include<string.h> #include<iostream.h> void main( ) { char*p="abcde\0fghjik\0"; cout<<strlen(p);} 程序运行后的输出结果是A.12B.15C.6D.5

考题 有以下程序:include main(){ printf("%d\n",NULL);}程序运行后的输出结果是()。A.0B.1C 有以下程序: #include<stdio.h> main() { printf("%d\n",NULL);} 程序运行后的输出结果是( )。A.0B.1C.-1D.NULL没定义,出错

考题 以下程序运行后的输出结果是()。includevoid main(){ char aft="abbcabbcabbc"; int 以下程序运行后的输出结果是( )。 #include<iostream.h> void main() { char aft="abbcabbcabbc"; int i=0,j=0,k=0; while(a[i]) { if(a[i]=='a') j++; if(a[i]=='b') k++; i++; } cout<<j<<""<<k<<end1; }A. 2,6B.3,5C.4,7D.3,6

考题 有以下程序:include include main( ) {char a[ 7 ] = "a0 \0a0 \0";int i, 有以下程序:#include <stdio.h>#include <string.h>main( ) { char a[ 7 ] = "a0 \0a0 \0"; int i,j; i = sizeof(a); j = strlen(a); printf(" % d %d \n" ,i,j); }程序运行后的输出结果是( )。A.22B.76C.72D.62

考题 以下程序的输出结果是【 】。includeincludechar*fun(char*0{ char *p--t;retur 以下程序的输出结果是【 】。include <stdio.h>include <string.h>char *fun(char *0{ char *p--t;return (p+strlen(t)/2);}main(){ char *str="abcdefgh";str=ftm(str);puts(str);}

考题 以下程序运行后的输出结果是( )。 include main() { int x=20; printf("%d", 0 以下程序运行后的输出结果是( )。include<stdio.h>main(){ int x=20;printf("%d", 0<x<20);printf("%d\n", 0<x x<20);}

考题 有以下程序,其输出结果是()。include using namespace std;int main(){ char a[10]={' 有以下程序,其输出结果是( )。 #include <iostream> using namespace std; int main(){ char a[10]={'1','2','3','4','5','6','7','8','9',0},*p; int i=8; p=a+i; cout<<p-3<<endl; return 0; }A.6789B.6C.789D.'6'

考题 若有以下程序: include using namespace std; int main() {char str[10];cin>>str;co 若有以下程序:include <iostream>using namespace std;int main(){char str[10];cin>>str;cout<< str<<end1;return 0;}当输入为:This is a program!那么执行程序后的输出结果是【 】。

考题 以下程序运行后的输出结果是( )。 include main() {char ch[]="abcd",x[4][4];int i; f 以下程序运行后的输出结果是( )。 include<string.h> main() {char ch[]="abcd",x[4][4];int i; for(i=0;i<4;i++)strcpy(x[i],ch); for(i=0;i<4;i++)printf("%s",x[i][i]); printf("\n"); }

考题 以下程序段运行后,消息框的输出结果是( )。 a=10b=20c=abMsgBox c+l A.一1B.0SX 以下程序段运行后,消息框的输出结果是( )。 a=10b=20c=a&lt;bMsgBox c+lA.一1B.0C.1D.2

考题 有以下程序: include include using namespace std; int main() {char arr[ 有以下程序: #include<iostream> #include<string> using namespace std; int main() { char arr[2][4]; strcpy(arr[0],"you"); strcpy(arr[1],"me"); arr[0][3]=''; cout<<arr[0]<<end1; return 0; } 执行后的输出结果是( )。A.youmeB.youC.meD.err

考题 以下程序运行后的输出结果是【】。include main(){int i=10,j=0;do{j=j+ i; i--;}while 以下程序运行后的输出结果是【 】。include <iostream.h>main(){int i=10,j=0;do{j=j+ i; i--;}while(i>2);cout<<j;}

考题 有以下程序include.main(){char*p="abcde\ofghjik\0";printf("%d\n",strlen(p));} 程 有以下程序 #include.<string.h> main() { char *p="abcde\ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是A.12B.15C.6D.5

考题 以下程序运行后的输出结果是【】。 include void main(){char s[]=“123456”,*p;for(p=s 以下程序运行后的输出结果是【 】。include<iostream.h>void main(){char s[]=“123456”,*p;for(p=s; p<s+2; p++)cout<<p<<end1;}

考题 阅读以下程序,写出程序运行后的输出结果是 ______。includevoid main(){ char a[]={ 阅读以下程序,写出程序运行后的输出结果是 ______。 #include<iostream.h> void main(){ char a[]={'H','e','r','1',‘o’,'\0'}; int i, j; i=sizeof(a)/sizeof(char); j=strlen(a) cout<<i<<' '<<j; }A.6 6B.5 6C.1 5D.6 5

考题 有以下程序:includeincludemain(){char str[][20]={"Hello","Beijing"},*P 有以下程序: #include <stdio.h> #include <string.h> main() { char str[][20]={"Hello","Beijing"},*P=str[0]; printf("%d\n",strlen(p+20)); } 程序运行后的输出结果是( )。A.0B.5C.7D.20

考题 单选题有如下程序:#include main(){ char name[10] = {'S','T','R','I','N','G'}; name[3]='E'; name[5]=0; printf(%s,name);}程序运行后的输出结果是(  )。A STRENGB STRIEGC STREND STREN0

考题 单选题有以下程序:#include main(){ int i,j=0; char a[] = How are you,b[10]={0}; for(i=0;a[i];i++)  if(a[i]==' ')   b[j++]=a[i+1]; printf(%s,b);}程序运行后的输出结果是(  )。A HayB How are youC weD ay

考题 单选题有以下程序:#include main(){ char *a[]={abcd,ef,gh,ijk}; int i; for(i=0;i4;i++)printf(%c,*a[i]);}程序运行后的输出结果是(  )。A aegiB dfhkC abcdD abcdefghijk

考题 单选题有以下程序:#include main(){ int i,j=0; char a[] = How are you!,b[10]={0}; for(i=0;a[i];i++)  if(a[i]==' ')   b[j++]=a[i-1]; printf(%s,b);}程序运行后的输出结果是(  )。A weB How are you!C ayD we!