c语言判断字符串是不是对应的汉字
#include<stdio.h>chara[50]={"C语言"};intmain(){if(a=="C语言")printf("YES");elseprintf("NO...
#include <stdio.h>
char a[50] = {"C语言"};
int main ()
{
if (a == "C语言")
printf ("YES");
else
printf ("NO");
return 0;
}
NO
--------------------------------
Process exited after 0.007841 seconds with return value 0
请按任意键继续. . . 展开
char a[50] = {"C语言"};
int main ()
{
if (a == "C语言")
printf ("YES");
else
printf ("NO");
return 0;
}
NO
--------------------------------
Process exited after 0.007841 seconds with return value 0
请按任意键继续. . . 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询