笔果题库
计算机二级C语言程序设计
VIP题库
搜题找答案,就上笔果题库
有以下程序#include main(){ int a[]={1,2,3,4},y,*p=&a[3];--p;y=*p;printf("y=%d\n",y);}程序的运行结果是______。
搜题找答案,就上笔果题库
有如下程序段int *p, a=1;p=&a;*p=10;则变量a的值为______。
搜题找答案,就上笔果题库
有以下程序#include main(){int password;char *p, old_str[10] = "wind";scanf("%d", &password);p = old_str;while (*p){printf("#%c", *p + password);p++;}printf("\n");}程序运行时,从键盘输入2,输出结果是______。
搜题找答案,就上笔果题库
下面关于指针基类型的叙述正确的是______。
搜题找答案,就上笔果题库
有以下程序 #include int fun( char *s ) { char *p=s; while (*p !=0 ) p++; return ( p-s ); } main() { printf( "%d\n", fun( "goodbey!" ) ); }程序的输出结果是______。
搜题找答案,就上笔果题库
设有定义:int x=2,*p=&x;float y=3.0; char z=''c'';,则立即进行以下运算有安全隐患的是______。
搜题找答案,就上笔果题库
下列程序的运行结果是______。void fun(int *a,int *b){ int *k;k=a;a=b;b=k;}main(){ int a=3,b=6,*x=&a,*y=&b;fun(x,y);printf("%d %d",a,b);}
搜题找答案,就上笔果题库
若有函数声明 void fun(float array[], int *ptr);以下叙述正确的是______。
搜题找答案,就上笔果题库
以下关于地址和指针的叙述中正确的是______。
搜题找答案,就上笔果题库
有以下程序#include #include void fun(char *c,int n){ char s,*p1,*p2;p1=c;p2=c+n-1;while(p1