Post

Replies

Boosts

Views

Activity

Reply to XCode
thanks for the help but after i defined it , i have another error which is " Incompatible pointer to integer conversion passing 'char [100]' to parameter of type 'char' " . do you have any idea what should i do ?
Feb ’21
Reply to XCode
here's my code :) #include stdio.h #include string.h int main() {     char word[100];     char words[100];     char strrev(char word);     printf("Input your word:");     gets(word);     strcpy(words,word);     printf("Reversed:");     printf("%c",strrev(words));     if((strcmp(word,words)==0)) printf("It is a palindrome word");     else         printf("It is not a palindrome word");     return 0; }
Feb ’21