以下程序运行结果为#include[stdio.h] void main() { char a[] = "Language", b[] = "programe"; char *p, *q; int k; p = a; q = b; for (k=0; k<8; k++) if (*(p+k) == *(q+k)) printf("%c", *(p+k)); } A: gae B: ga C: Language D: programe
以下程序运行结果为#include[stdio.h] void main() { char a[] = "Language", b[] = "programe"; char *p, *q; int k; p = a; q = b; for (k=0; k<8; k++) if (*(p+k) == *(q+k)) printf("%c", *(p+k)); } A: gae B: ga C: Language D: programe
字符型数组可以用来存储字符串,因此可以用字符串初始化数组,例如:char str[]="C Programe
字符型数组可以用来存储字符串,因此可以用字符串初始化数组,例如:char str[]="C Programe
以下程序的运行结果是#include<stdio.h>void main(){static char a[]="Language",b[]="programe";char *p,*q;int k;p=a;q=b;for(k=0;k<=7;k++)if(*(p+k)==*(q+k))printf("%c",*(p+k));}
以下程序的运行结果是#include<stdio.h>void main(){static char a[]="Language",b[]="programe";char *p,*q;int k;p=a;q=b;for(k=0;k<=7;k++)if(*(p+k)==*(q+k))printf("%c",*(p+k));}
1