#include <stdio.h>
int compare_word(char *word_one, char *word_two){
for (int i = 0; (*(word_one + i) != '\0') || (*(word_two + i) != '\0'); ++i)
if (*(word_one + i) != *(word_two + i))
return 0;
return 1;
}
int main(){
char word_one[] = "helloworld";
char word_two[] = "helloworld !";
if (compare_word(&word_one[0], &word_two[0]))
printf("%s\n", "all is ok !");
else
printf("%s\n", "all is not ok !");
return 0;
}