网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列#include命令中,正确的是()
- A、#inclue[string.h]
- B、#include{string.h}
- C、#include(string.h)
- D、#include
参考答案
更多 “下列#include命令中,正确的是()A、#inclue[string.h]B、#include{string.h}C、#include(string.h)D、#include” 相关考题
考题
下列程序的输出结果是______。 include include using namespace std; voi
下列程序的输出结果是______。include<iostream.h>include<string.h>using namespace std;void fun(const char*s,char C) {c=s[strlen(s)/2];}int main(){char str[]="ABCDE";char ch=str[1];fun(str,ch);cout<<ch;return 0;}
考题
有下列程序: include include "string.h" void tim(char *s[],int n)
有下列程序: #include <stdio.h> #include "string.h" void tim(char *s[],int n) { char *t;int i,j; for(i=0;i<n-1;i++) for(j=i+1;j<n;j++) if(strlen(s[i])>strlen(s[j])) {t=s[i];s[i]=s[j];s[j]=t;} } main() { char *ss[]= {"bcc","bbcc","xy","aaaacc","aabcc"}; fun(ss,5);printf("%s,%s\n",ss[0],ss[4]); } 程序的运行结果是( )。A.xy,aaaaccB.aaaacc,xyC.bcc,aabccD.aabcc,bcc
考题
设已执行预编译命令include,以下程序段的输出结果是char s[]="an apple";printf("%d\
设已执行预编译命令#include<string.h>,以下程序段的输出结果是 char s[]=" an apple" ; printf("%d\n",strlen(s));A.7B.8C.9D.10
考题
从键盘上输入XXYYZZXYZWXP和X,以下程序的输出结果是【】。 include include
从键盘上输入XXYYZZXYZWXP和X,以下程序的输出结果是【 】。include<iostream.h>include<string.h>void main(){char*str,ch;int count=0,pos;cin>>str>>ch;pos=strlen(str)-1;while(pos>=0){if((str[pos])=ch)count++;pos--;}cout<<"count="<<count;}
考题
以下程序的输出结果是【】。 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 include void main(){ char b[30]; str
下列程序的输出结果是【 】。include<iostream.h>include<string.h>void main(){char b[30];strcpy(b[0],"XY");strcpy(b[1],"YZW");strcpy(b[2],"ZXY");cout<<b<<end1;}
考题
当执行下面的程序时,如果输入ABC,则输出结果是 ( ) include include
当执行下面的程序时,如果输入ABC,则输出结果是 ( ) # include<stdio.h> # include<string.h> main( ) { char ss [10] ="12345"; gets(ss);strcat(ss"6789");printf("%s\n",ss); }A.ABC6789B.ABC67C.12345ABC6D.ABC456789
考题
下列程序的运行结果是()。 include include main() {char*s1="abDuj"; char
下列程序的运行结果是( )。#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.不确定的值
考题
下面程序的输出结果是()。includeinclude"string.h"void main(){char a[]="Hello T
下面程序的输出结果是( )。 #include<iostream.h> #include"string.h" void main() {char a[]="Hello Test",b[]="Test"; strcpy(a,b); cout<<a<<end1; } A) B)C) D)A.HelloB.TestC.Hello TestD.Hello Test HelloTest
考题
下列程序的运行结果为【】。 include include {int a; char b[10]; double c;};
下列程序的运行结果为【 】。include<stdio.h>include<string.h>{ int a; char b[10]; double c; };void f (struct A *t);main(){ struct A a={1001,"ZhangDa",1098.0};f(a) ; printf("%d,%s,%6.lf\n",a.a,a.b,a.C);}void f(struct A*t){ strcpy(t->b, "ChangRong");}
考题
有以下程序: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
考题
下列程序的输出结果是( )。 include include"string.h" void main() {char a[]="He
下列程序的输出结果是( )。 #include<iostream.h> #include"string.h" void main() {char a[]="Hello Test",b[]="Test"; strcpy(a,b); cout<<a<<end1; }A.HelloB.TestC.Hello TestD.Hello Test HelloTest
考题
下列程序的输出结果是()。includeincludemain(){char a[]="\n123\\";printf
下列程序的输出结果是( )。 #include<stdio.h> #include<string.h> main() { char a[]="\n123\\"; printf("%d,%d\n",strlen(a),sizeof(a)); }A.5,6B.5,5C.6,6D.6,5
考题
下面程序的运行结果是 ( ) include include main( ) { char * a="
下面程序的运行结果是 ( ) # include<stdio.h> # include<string.h> main( ) { char * a="AbcdEf",* b="aBcD" a + +;b + +; printf("%d\n",strcmp(a,b)); }A.0B.负数C.正数D.无确定值
考题
下列程序的输出结果是()。 include include main() {char a[]="\n123\\";pr
下列程序的输出结果是( )。 #include<stdio.h> #include<string.h> main() { char a[]="\n123\\"; printf ("%d,%d\n",strlen(a),sizeof(a)); }A.5,6B.5,5C.6,6D.6,5
考题
下面程序的输出结果是 ( ) include include { char * p1="abc" , *
下面程序的输出结果是 ( ) # include<stdio.h> # include<string.h> { char * p1="abc" , * p2=" ABC ",str[50]="xyz"; strcpy(str+2.strcat (pi,p2)); printf("%s\n",str);}A.xyzabcABB.zabcABCC.yzabcABCD.xycbcABC
考题
以下程序 include include main() { char*p1="abc",*p2="ABC",str[50]="xy
以下程序 #include<stdio.h> #include<string.h> main() { char*p1="abc",*p2="ABC",str[50]="xyz"; strcpy(ar+2,strcat(p1,p2)); printf("%s\n",str); } 的输出是______。A.xyzabcABCB.zabeABCC.yzabcABCD.xyabcABC
考题
有以下程序:include include main(){char *p[10]={"abc","aabdfg","dcdbe"
有以下程序: #include <stdio.h> #include <string.h> main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"}; printf("%d\n",strlen(p[4])); } 执行后的输出结果是( )。A.2B.3C.4D.5
考题
设已执行预编译命令include,以下程序段的输出结果是()。char s[]="an apple";printf("
设已执行预编译命令#include<string.h>,以下程序段的输出结果是( )。 char s[]=" an apple" ; printf(" %d\n" ,strlen(s));A.7B.8C.9D.10
考题
在下列# include命令中,正确的一条是 ( )A.# include [string.h]B.# include {math.h}C.# include(stdio.h)D.# include<stdio.h>
考题
如果在用户的程序中要使用C库函数中的数学函数时,应在该源文件中使用的include命令是()A、#include〈string.h〉B、#include〈math.h〉C、#include〈stdio.h〉D、#include〈ctype.h〉
考题
单选题下列#include命令中,正确的是()A
#inclue[string.h]B
#include{string.h}C
#include(string.h)D
#include
热门标签
最新试卷