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

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

在以下程序段的空白处填入(),能够正确输出teacher。 #include<stdio.h> main() {char *p[3]={"student","teacher","classroom"}; printf("%s", ); }

A.*(p+1)

B.*p+1

C.*p[1]

D.*p+7


参考答案和解析
int a ,*p=& a ; scanf(“%d” , p);
更多 “在以下程序段的空白处填入(),能够正确输出teacher。 #include<stdio.h> main() {char *p[3]={"student","teacher","classroom"}; printf("%s", ); }A.*(p+1)B.*p+1C.*p[1]D.*p+7” 相关考题
考题 有下面程序段#include "stdio.h"#include "string.h"main(){ char a[3][20]={{"china"},{"isa"},{"bigcountry!"}};char k[100]={0},*p=k;int i;for(i=0;i3;i++){ p=strcat(p,a[i]);}i=strlen(p);printf("%d\n",i);}则程序段的输出结果是A.18B.19C.20D.21

考题 有以下程序:includevoid fun(char**p){++P;printf("%s\n",*p);}main()char*a[]={"Morn 有以下程序: #include<stdio.h> void fun(char**p) { ++P;printf("%s\n",*p);} main() char*a[]={"Morning","Afternoon","Evening","Night"}; fun(A); } 程序的运行结果是( )。A.AfternoonB.fternoonC.MorningD.oring

考题 有以下程序: includemain(){char*p,*q; p=(char *)malloc(sizeof(char)* 20);q=p; sca 有以下程序: # include<stdio.h> main() { char*p,*q; p=(char *)malloc(sizeof(char)* 20);q=p; scanf("%s %s",p,q);printf("%s %s\n",p,q); } 若从键盘输入;abc def<回车>,则输出结果是 ______。A.def defB.abc defC.abe dD.d d

考题 有以下程序:includeincludeincludevoid f(char*s,char*t){char k;k=*s; * 有以下程序: #include<stdio.h> #include<string.h> #include void f(char*s,char*t) { char k; k=*s; *s=*t; *t=k; s++;t--; if(*s)f(s,t): } main() {char str[10]="abcdefg",*P; P=str+strlen(str)/2+1: f(p,p-2); printf("%s\n",str); } 程序运行后的输出结果是( )。A.abcdefgB.gfedcbaC.gbcdefaD.abedcfg

考题 以下四个程序中,完全正确的是()。A.include main( ); { /* programmlng* / printf( "p 以下四个程序中,完全正确的是( )。A.#include <stdio.h> main( ); { /* programmlng* / printf( "programming! \n" ); }B.#include <stdio.h> main( ) { /*/programming printf("programming! \n"); }C.#include <stdio.h> main( ) { /*programming* / printf( "programming! \n" ); }D.include <stdio.h> main ( ) { /*/* programming*/*/ printf( "programming! \n" ); }

考题 以下程序用以删除字符串中所有的空格,请填空。 include main() {char s[100]={"Our teac 以下程序用以删除字符串中所有的空格,请填空。include<stdio.h>main(){char s[100]={"Our teacher teach C language!"};int i,j;for(i=j=0;s[i]!='\0';i++)if(s[i]!=''){( )}s[j]='\0';printf("%s\n",s);}

考题 下列程序的输出结果是______。 includef(char 8s){char *p=s;while(*p!='\0')p++;retur 下列程序的输出结果是______。# include<stdio.h>f(char 8s){ char *p=s; while(*p!='\0')p++; return(p-s);}main(){ printf("%d\n",f("ABCDEF"));}A.3B.6C.8D.0

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

考题 以下程序的输出结果是()。includecharcchar(chareh){if(ch>='A,ch 以下程序的输出结果是( )。 #include <stdio.h> charcchar(char eh) { if(ch>='A,ch<='Z') ch=ch-'A'+'a'; return ch; } main() { char s[]="ABC+abc=defDEF",*p=s; while(*p) { *p=cchsr(*p); p++; } printf("%s\n",s); }A.abc+ABC=DEFdefB.abc+abc=defdefC.abcABCDEFdefD.abcabcdefdef

考题 有以下程序: include point ( char * p) {p + = 3; }main( ) char b[4] = {'a','b','c 有以下程序: #include <stdio.h>point ( char * p) { p + = 3; }main( ) char b[4] = {'a','b','c','d'} , *p=b; point(p); printf( "% c \n" , * p);A.aB.bC.cD.d

考题 有以下程序: include void funl (char * p){char * q; q=p; while( *q! ='\0') } (*q) 有以下程序: #include <stdio.h>void funl (char * p){ char * q; q=p; while( *q! ='\0') } (*q) ++;q++;}mains( ){ char a[ ] = { "Program" } , * p; p = a[3]; fun1 (p); printf("% s \n" ,a);}程序执行后的输出结果是( )。A.ProhsbnB.PrphsbnC.ProgsbnD.Program

考题 下列程序执行的输出结果是()。 include main() {char a[2][4];strcpy(a,"are");strcpy( 下列程序执行的输出结果是( )。 #include<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a [1],"you"); a[0][3]=''; printf("%s\n",a); }A.areyouB.youC.areD.

考题 下列程序段的运行结果是()。 include void main() {char str[]="ABC",*p=str; printf(" 下列程序段的运行结果是( )。#include<stdio.h>void main(){ char str[]="ABC",*p=str;printf("%d\n",*(p+3) );}A.67B.0C.字符'C'的地址D.字符'C'

考题 下列程序段的输出结果为()。 include main() {static char a[]="language"; char*p; p= 下列程序段的输出结果为( )。#include<stdio.h>main(){ static char a[]="language";char*p;p=a;for(p=a;p<a+8;p+=2)putchar(*p);}A.languageB.lnugC.有语法错误D.lang

考题 有以下程序 include void fun(char **p) { ++p; printf("%s\n",*p); 有以下程序 #include <stdio.h> void fun(char **p) { ++p; printf("%s\n",*p); } main() { char *a[]={"Moming","Afternoon","Evening","Night"}; fun(a); } 程序的运行结果是A.AfternoonB.fternoonC.MorningD.orning

考题 以下程序includeincludemain(){char*p1="abc",*p2="ABC",str[50]="xyz", s 以下程序 #include<stdio.h> #include<string.h> main() { char*p1="abc",*p2="ABC",str[50]="xyz", strcpy(str+2,strcat(p1,p2)); printf("%s\n",str); } 的输出是______。A.xyzabcABCB.zabcABCC.yzabcABCD.xyabcABC

考题 以下程序includeincludemain(){ char*pl="abc",*p2="ABC",str[50]="xyz";s 以下程序 #include<stdio.h> #include<string.h> main() { char*pl="abc",*p2="ABC",str[50]="xyz"; strcpy(str+2.strcat(p1,p2)); printf("%s\n,str); } 的输出是______。A.xyzabcABCB.zabcABCC.yzabcABCD.xyabcABC

考题 下列程序段的输出结果为( )。 include main() { static char a[]="language"; char *p; 下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char *p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }A.languageB.lnugC.有语法错误D.lang

考题 有以下程序: include main( ) {char s[ ] ="159" , * p;p=s;printf( "% c", * p + + 有以下程序: #include <stdio.h> main( ) { char s[ ] ="159" , * p; p=s; printf( "% c", * p + + ); printf("%~", * p++);}程序运行后的输出结果是( )。A.15B.16C.12D.59

考题 以下程序的输出结果为()。includemain(){ char *alpha[6]={"ABCDEFGH","IJKL","MNOP"," 以下程序的输出结果为( )。 #include<stdio.h> main() { char *alpha[6]={"ABCDEFGH","IJKL","MNOP","QRST","UVWX"}; char**p;int i; p=alpha; for(i=0;i<4;i++)printf(" %s" ,p[i]);printf("\n" );}A.ABCDEFGHIJKLB.ABCDC.ABCDEFGHIJKLMNOPQRSTD.AEIM

考题 以下程序的输出结果是()。includeinclude main(){char str[12]={'s','t','r 以下程序的输出结果是( )。 #include <stdio.h> #include <string.h> main() { char str[12]={'s','t','r','i','n','g'}; printf("%d\n",strlen(str) ); }A.6B.7C.11D.12

考题 请读程序: includef(char * s){cahr * p=s;while(* p!='\0')p++;return(p-s);}main(){ 请读程序: # include<stdio.h> f(char * s) {cahr * p=s; while(* p!='\0')p++; return(p-s); } main() {printf("%d\n”,f("ABCDEF"));} 上面程序的输出结果是 ( )A.3B.6C.8D.0

考题 以下程序 includeincludemain(){char*pl="abc",*p2="ABC",str[50]="xyz"; 以下程序 #include<stdio.h> #include<string.h> main() { char*pl="abc",*p2="ABC",str[50]="xyz"; strcpy(str+2,strcat(p1,p2)); printf("%s\n",str); } 的输出是________。A.xyzabcABCB.zabcABCC.yzabcABCD.xyabcABC

考题 有以下程序:include main( ){char P[] = {'a','b','c'} ,q[]: "abc";printf( "% d % d 有以下程序:#include <stdio.h>main( ){ char P[] = {'a','b','c'} ,q[]: "abc"; printf( "% d % d \ n", sizeof(p), sizeof(q) );}程序运行后的输出结果是( )。A.44B.33C.34D.43

考题 以下程序运行后,输出结果是()includess(char*s){char*p=s; while(*p)p++ return(p-s); 以下程序运行后,输出结果是( ) #include<stdio.h> ss(char *s) { char*p=s; while(*p) p++ return(p-s); } main() { char *a="abded" int i; i=ss(a) ; printf("%d\n",i); }A.8B.7C.6D.5

考题 有以下程序: include include void f(char * s,char*t){char k; k=*s;*s=* 有以下程序: #include <stdio.h>#include <string.h>void f(char * s,char*t){ char k; k=*s; *s=*t; *t=k; s++; t--; if( * s) f(s,t);}main( ){ char str[10] :"abedefg", * p; p = str + strlen(str)/2+1; f(p,p -2); printf( "% s \n" ,str);程序运行后的输出结果是( )。A.abcdefgB.gfedcbaC.gbcdefaD.abedcfg

考题 以下程序 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