填空题
设有下列的程序段;
char str[]="Hello";
char *ptr;
ptr=str;
执行上面的程序段后,*(ptr+5)的值为______。
【参考答案】
’\0’
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序用来判断指定文件是否能正常打开,请填空。 #include<stdio.h> main() FILE*fp; if(((fp=fopen( test.txt , r ))= )) printf( 未能打开文件! n ); else printf( 文件打开成功! n );
点击查看答案&解析
填空题
下列程序的输出结果是______。 long fun5(int n) ( long s; if((n==l)‖(n==2)) s=2; else s=n+fun5(n-1); return(s); main() long x; x=fun5(4); printf(%1d n ,x);
点击查看答案&解析
相关试题
以下程序运行后的输出结果是______。...
设有定义: structint a;float b;char...