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

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

阅读下面程序,则执行后的结果是

#include "stdio.h"

main()

{char str[]="tomeetme",*p;

for(p=str;p<str+7;p+=2) putchar(*p);

printf("\n");}

A.tomeetme

B.tmem

C.oete

D.tome


参考答案

更多 “ 阅读下面程序,则执行后的结果是#include "stdio.h"main(){char str[]="tomeetme",*p;for(p=str;pstr+7;p+=2) putchar(*p);printf("\n");}A.tomeetmeB.tmemC.oeteD.tome ” 相关考题
考题 阅读下面程序段,则执行后输出的结果是 #include"stdio.h" main() { char fun(char,int); char a='A'; int b=13; a=fun(a,b); putchar(a);} char fun(char a,int b) { char k; k=a+b; return k;}A.AB.MC.ND.L

考题 有如下程序段#include "stdio.h"#include "string.h"#define N 10#define M 10char *find(char(*a)[M],int n){ char *q;int i; q=a[0]; for(i=0;in;i++) if(strcmp(a[i],q)0)q=a[i]; return q;}main(){ char s[N][M]={"tomeetme","you","and","he","china"}; char *p; int n=5; p=find(s,n); puts(p);}则执行后输出的结果为A.he B.and C.you D.tomeetme

考题 有以下程序#include "stdio.h"main() { char str[]="tomeetme",str1[]="toseeyou"; char *p=str,*p1=str1; int i; for(i=0;i if(*(p+i)==*(p1+i)) putchar(*(p+i)); printf("\n");}程序的运行结果是A.to B.tomeetC.toeeD.程序段不能通过编译

考题 阅读下面程序,则执行后的结果是#include "stdio.h"main(){ char str[]="tomeetme",*p;for(p=str;pstr+7;p+=2)putchar(*p);printf("\n");}A.tomeetmeB.tmemC.oeteD.tome

考题 阅读下面程序,则执行后的结果是 #include"stdio.h" main() { char str[]="tomeetme",*p; for(p=str;p<str+7;p+=2)putchar(*p); printf("\n");}A.tomeetmeB.tmemC.oeteD.tome

考题 阅读下面程序,则执行后的结果是 #include"stdio.h" main() { char str[]="tomeetme",*p; for(p=str;p<str+7;p+=2)putchar(*p); printf("\n");} .A.tomeetmeB.tmemC.oeteD.tome

考题 有以下程序: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"stdio.h"main(){ inta=-1,b=1,k;if((++a 阅读下面语句,则程序的执行结果是______。include"stdio.h"main(){ inta=-1,b=1,k;if((++a<0)! (b--<=0))printf("%d,%d\n",a,b);else printf("%d,%d\n",b,a);}

考题 以下程序执行时如果输入Language Programming,则程序输出结果是? #include <stdio.h> main() { char str[30]; scanf("%s",str); printf("%sn",str); }