未知题型

A.6
B.7
C.11
【参考答案】

A
解析:在C语言中,字符串的长度是其首字符到NULL(不含)字符的总字符个数。本题定义字符数组str的同时,对...

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)

相关考题

未知题型 在专利申请中,申请人自发明或实用新型在外国第一次提出专利申请之日起12个月内,在中国就相同主题提出申请的,可以把第一次在外国提出申请的申请日作为在我国提出申请的申请日,这样的权利称之为()。

不定项选择 Positive nitrogen balance occurs during starvation, illness and injury.

未知题型 设有以下语句: char strl[]='string',str2[8],*str3,*str4='string'; 则_______不是对库函数的正确调用。D.strcpy(str4,'HELLO4');

未知题型 下面程序的输出是________。 char s[]='ABCD'; main() { char*p for(p=s;p<s+4,p++) printf('%s/n',p); }A.ABCD BCD CD DB.A B C DC.D C B AD.ABCD ABC AB A

未知题型 下面程序的输出结果是_______。 #include<stdio.h> main() { char*p[]={'DOOL','OPK','H','SP'}; int i; for (i=3;i>=0;i-,i-) printf('%c',*p[i]); printf('/n'); }A.SOB.SPC.SPOPKD.SHOB

未知题型 以下程序的输出结果是_______。 #include<stdio.h> void prt(int*x,int*y,int*z) { printf('%d,%d,%d/n',++*x,++*y,*(z++));} int a=10,b=40, c=20; main() { prt(&a,&b&C) ; prt(&a,&b,&C) ; }A.11,42,31 12,22,41B.11,41,20 12,42,20C.11,21,40 11,21,41D.11,41,21 12,42,22

未知题型 以下程序(程序左边的数字为符加的行号)。 1#include<str.h> 2#include<stdio.h> 3main() 4{ char s[]='string'; 5puts(s); 6strcpy(s,'hello'); 7printf('%3s/n',s);}A.没有错B.第1行有错C.第6行有错D.第7行有错

未知题型 下列程序的执行结果是_______。 #include<stdio.h> union un { int i; char c[2]; }; void main() { union un x; x.c[0]=10; x.c[1]=1; printf('/n%d',x.i); }A.266B.11C.265D.138

未知题型 下列程序的运行结果是______。 class A implements Runnable { int a; iht i = 2; A(int x) { a = x; } public void run() { while(i > 0) { System.out.println('线程' + a); i--; } } } public class Testl3 { public static void main(String[] args) { Thread a1 = new Thread(new A(1)); Thread a2 = new Thread(new A(2)); a1.start(); a2.start(); } }A.线程1 线程1 线程2 线程2B.线程1 线程2C.线程1 线程2 线程1 线程2D.线程1 线程1 线程1 线程1

判断题 曲线超高顺坡坡度,最大不得大于3%。