简答题:请编写函数proc(),其功能是:将sir所指字符串中下标为偶数的字符删除.串中剩余字符形成的新串放在t所指数组中。例如

  • 题目分类:C语言
  • 题目类型:简答题
  • 查看权限:VIP
题目内容:
请编写函数proc(),其功能是:将sir所指字符串中下标为偶数的字符删除.串中剩余字符形成的新串放在t所指数组中。
例如,当sir所指字符串中的内容为abcdefg。则在t所指数组中的内容应是bdf。
注意:部分源程序给出如下。
请勿改动main()函数和其他函数中的任何内容,仅在函数proc()的花括号中填人所编写的若干语句。
试题程序:
#include<stdlio.h>
#include<conio.h>
#include<stdio.h>
#include.%strin9.h>
void proc(char*str,char t[])
{
)
void main()
{
,、hat str[100].t[100];
system(”CLS”):
printf(”\nPlease enter string str:”);
scanf(”%S”.str):
proc(sir,t);
printl'(”\nThe result is:%s\n”,t);
)
参考答案:
答案解析:

What day is the party on?

What day is the party on?A.B.C.

查看答案

Notice to RetailersOwing to production delays and unexpecte

Notice to RetailersOwing to production delays and unexpected demand, we regre

查看答案

The finalists were interviewed separately.

The finalists were interviewed separately.A.Right B.Wrong C.Doesn't say

查看答案