0
您好我想创建一个简单的代码中使用,如果逻辑运算符==在if语句,但它不工作的人可以看看我的代码在告诉我什么是错用它逻辑运算符在if语句不工作
这里是我code`
#include<stdio.h>
main();
{
char a[15], b[15];
clrscr();
printf("Enter A String\n");
fgets(a,15,stdin);
printf("Enter Another String\n");
fgets(b,15,stdin);
if(a==b)
printf("Match\n");
else
printf("Does Not Match");
getch();
}
我使用的这个,但即使我进入2个等值它打印“不匹配” 谁能告诉我什么是错,我是初学者在编程和IM真的很困惑什么是错这里
非常感谢你的帮助 –