设有以下程序段:char s[]=”china”; char *p; p=s; 则下列叙述正确的是( )。
以下程序有错,错误原因是()main(){int*p,i;char*q,ch;p=&i;q=&ch;*p=40;*p=*q;……}
有以下程序#include #include main(){ char str[ ][20]={“One*World”, “One*Dream!”},*p=str[1];printf(“%d,”,strlen(p));printf(“%s ”,p);}程序运行后的输出结果是( )
有以下程序struct STU{char num[10];float score[3];}main(){struct STU s[3]={{\20021\,90,95,85},{\20022\,95,80,75},{\20023\,100,95,90}},*p=s;int i; float sum=0;for(i=0;i<3;i++)sum=sum+p->score[i];printf(\%6.2f\\n\,sum);}程序运行后的输出结果是()
有以下程序: include <stdlib.h> main() { char *p,*q; p=(char*)malloc(sizeof(char)*20); q=p; scanf("%s%s",p,q); ptintf("%s%s\n",p,q); } 若从键盘输入abc def<回车>,则输出的结果是()。
有以下程序: point(char *p){p+=3;} main() {char b[4]={'a','b','c','d',},*p=b; point(p);printf("%c\n",*p); } 程序运行后的输出结果是 ______。
有以下程序 include <string.h>main(){char p[20]={′a′, ′b′, ′c′, ′d′}, q[]="abc", r[]="abcde";strcat(p, r); strcpy(p+strlen(q), q);printf("%d\n",strlen(p));}程序运行后的输出结果是
有以下程序 include<stdlib.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<回车>,则输出结果是
有下面程序段 include"stdio.h" include"string.h" main() { char a[3][20]={{"china"},{"isa"},{"bigcountry!"}}; chark[100]={0},*p=k; int i; for(i=0;i<3;i++) {p=strcat(p,a[i]);} i=strlen(p); printf("%d\n","i);} 则程序段的输出结果是
有以下程序 main() { char str[][10]={"China","Beijing"},*p=str; printf("%s\n",p+10); } 程序运行后的输出结果是
下面程序段执行的结果是()char*p="abcde";p+=3;printf("%d",p);
有以下程序 include <stdio.h> void fun(char **p) { ++p; printf("%s\n",*p); } main() { char *a[]={"Moming","Afternoon","Evening","Night"}; fun(a); } 程序的运行结果是
有以下程序includemain(){ char p[20]={'a','b','c','d'},q[ ]="abc",r[ ]="abcde';strcat(p,r) ;strcpy(p+strlen(q),q);printf("%d\n",strlen(p));}程序运行后的输出结果是
有以下程序 include<string.h> main() { char *p=“abcde、Ofghjik\0”; printf(“%d\n”,strlen(p)); } 程序运行后的输出结果
有以下程序 include<stdio.h> intfun(chars[]){ char*P=s: while(*P!=0)p++; return(p-s);}
以下程序段运行后,表达式*(p+4)的值为()。﹤br/> char a[]="china"; char *p; p=a;
有以下程序 struct STU {char num[10];float score[3];}; main() {stmct STU s[3]={{“20021”,90,95,85}, {“20022”,95,80,75}, {“20023”,100,95,90}},*p=s; int i;float sum=0; for(i=0;i<3;i++) sum=sum+p->score[i]; printf(“%6.2f\n”,sum); } 程序运行后的输出结果是
有以下程序: include<stdio.h> include<string.h> main() {char str[][20][{"One*World","One*Dream!"},*p=str[1]; prinft("%d,",strlen(p));printf("%s\n",p); } 程序运行后的输出结果是()。
有以下程序:point(char *p){ p+=3;}main(){char b[4]={'a','b','c','d'}, *p=b; point(p); print
有以下程序main(){char s[]="ABCD",*p;for(p=s+1;p<s+4;p++)printf("%s\n",p);}程序运行后的输出
有以下程序: include<strintg.h> main { char p[20]={a,b,c,d),q[]="abc",r[]=" abcde"; strcpy(p+strlen(q),r);strcat(p,q); printf("%d%d\n",sizeof(p),strlen(p)); } 程序运行后的输出结果是()。
有以下程序 main (){char p[]={'a','b','c},q[] ="abc";printf ("%d%d\n" , sizeof (p) , sizeo
以下程序运行后的输出结果是______。 ss(char*s) { char*p=s; while(*p)p++; return(p-s); } main
若有以下定义语句,程序运行后的输出的结果是______。 char s[]="9876",*p; for (p=s;p<s+2;p++) cout<<p<<endl;