填空题

在宏定义#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));
填空题
函数de1ete(s,i,n)的作用是从字符串s中删除从笫i个字符开始的n个字符,请填空。 void de1ete(chars[],int i,int n) int j,k,length=O; whi1e(s[length]) -i; j=i; if( ) k=i+n; if(i+n<=length) whi1e(k<length) s[j++]=s[k++]; s[j]=’ 0;
相关试题
  • 设有下列宏定义:#define A 2 #defin...
  • 函数调用语句:“fgets(buf,n,fp);”...