报关编码题:以下程序中函数huiwen的功能是检查一个字符串是否是回文,当字符串是回文时,函数返回字符串:yes!,否则函数返回字符

  • 题目分类:C语言
  • 题目类型:报关编码题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
以下程序中函数huiwen的功能是检查一个字符串是否是回文,当字符串是回文时,函数返回字符串:yes!,否则函数返回字符串:no!,并在主函数中输出,所谓回文即正向与反向的拼写都一样,例如:adgda。请填空。
#include
char*huiwen(char*str)
{char*p1,*p2;inti,t=0;
p1=str;p2=(18);
for(i=0;i<=strlen(str)/2;i++)
if(*p1++!=*p2--){t=1;break;}
if((19))return("yes!");
elsereturn("no!");
}
main()
{charstr[50];
printf("Input:");scanf("%s",str);
printf("%s\n",(20));
参考答案:
答案解析:

以下程序运行后的输出结果是(  )。 main() {inta=3,b=4,c=5,t=99; if(b

以下程序运行后的输出结果是(  )。 main() {inta=3,b=4,c=5,t=99; if(bif(aprintf("%d%

查看答案

输入VisualBasic源程序时,若一个命令行中包含两个语句,则两个语句之间的分隔符应使用( )。

输入VisualBasic源程序时,若一个命令行中包含两个语句,则两个语句之间的分隔符应使用( )。A.冒号(:) B.分号(;) C.下划线(-) D.连字符

查看答案

The word “consumed” in paragraph 3 could be best replaced by

The word “consumed” in paragraph 3 could be best replaced byA.use B.burne C.deli

查看答案

DifferentregionsinFranceproducedifferenttypesofwine.

DifferentregionsinFranceproducedifferenttypesofwine.A.Right B.Wrong C.Notmention

查看答案

有关ZAP命令的描述,正确的是

有关ZAP命令的描述,正确的是A.ZAP命令只能删除当前表的当前记录 B.ZAP命令只能删除当前表的带有删除标记的记录 C.ZAP命令能删除当前表的全部记录 D

查看答案