笔果题库
计算机二级C语言程序设计
免费题库
搜题找答案,就上笔果题库
关于指针,以下错误的叙述是______。
搜题找答案,就上笔果题库
有以下程序(其中库函数strstr()首部格式为:char *strstr(char *p1, char *p2) 其功能是确定p2字符串是否在p1中出现,并返回p2第一次出现的字符串首地址)#include #include char *a="you";char *b="Welcome you to Beijing!";main(){ char *p;p = strstr(b, a);printf("%s\n", p);}程序的运行结果是______。
搜题找答案,就上笔果题库
以下程序中,while循环的循环次数是______。main(){int i=0;while(i
搜题找答案,就上笔果题库
设有以下说明语句typedef struct{ int n;char ch[8];}PER;则下面叙述中正确的是______。
搜题找答案,就上笔果题库
有以下程序#include #include main(){ char a[10]="abcd";printf("%d,%d\n",strlen(a),sizeof(a));}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
有以下程序#include main(){ char b[4][10]; int i;for (i=0; i
搜题找答案,就上笔果题库
有以下程序#include int a = 2;int f(int k){ static int n;int m;m = n = 0;n++; a++; m++; k++;return n+m+a+k;}main(){ int k;for (k=0; k
搜题找答案,就上笔果题库
有以下程序#include main(){ int a=1,b=2; for( ;a
搜题找答案,就上笔果题库
有以下程序#include void fun(int *a,int *b){ int *c;c=a;a=b;b=c;}main(){ int x=3,y=5,*p=&x,*q=&y;fun(p,q);printf("%d,%d,",*p,*q);fun(&x,&y);printf("%d,%d\n",*p,*q);}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
以下选项中,不能对主函数中变量i和j的值进行交换的程序是______。