计算机二级C语言程序设计
VIP题库
有以下函数int fun( char *s, char *t ){ while(( *s )&&( *t ) && (*t++ == *s++ ) );return (*s-*t);}函数的功能是______。
有以下程序#include int disp(char* str){while (*str) putchar(*str++);putchar(''#'');return *str;}main(){printf("%d\n", disp("C##123"));}程序运行后的输出结果是______。
若有说明:int i,j=7,*p=&i;则与i=j;等价的语句是______。
关于数组和指针,以下说法错误的是______。
若有定义语句:double a,*p=&a;以下叙述中错误的是_____。
有以下程序#include main(){ int a[10]={0},i=0,*p=a;while( p
以下定义语句中正确的是______。
有以下程序int *f(int *x,int *y){ if(*x
函数fun的功能是在a所指的具有n个元素的数组中查找最大值并返回给调用函数,函数不完整。int fun(int *a,int n){ int *p,*s;for( p=a,s=a; p-a
下列函数的功能是______。fun(char *a,char *b){ while((*b=*a)!=''\0'') {a++;b++;} }
«
1
2
...
65
66
67
68
69
70
71
...
149
150
»