これの問題点はなんですか?
#include<stdio.h>
int main(void)
{
char word1[32],word2[32];

printf("同じ長さの文字列を二つ入力しなさい。\n");


gets(word1);
gets(word2);


while(word1!=word2){
printf("異なる文字列を入力しました");
scanf("%c",&word1);