填空题

函数调用语句:“fgets(buf,n,fp);”从中指向的文件中读入n个字符放到buf字符数组中,函数返回值为______。

【参考答案】

buf的首地址
<上一题 目录 下一题>
热门 试题

填空题
在宏定义#define P13.14159中,用宏名PI代替一个______。
填空题
下列程序的功能是:求出ss所指字符串中指定字符的个数,并返回此值。 例如,若输入字符串123412132,输入字符1,则输出3,请填空。 #include<conio.h> #include<stdio.h> #define M 81 int fun(char*ss,char c) int i=0; for(;______;ss++) if(*ss==c)i++; return i; main() char a[M],ch; printf( nPlease enter a string: );gets(a); printf( nPlease enter a char: );ch=getchar(); printf( nThe number of the char is:%d n ,fun(a,ch));
相关试题
  • 设有下列宏定义:#define A 2 #defin...