Error message "array type has incomplete element type 'string[]'" in C programming
I wrote a function called cypher that returns a replaced value of vowels. I am stuck with the function "string cypher_word(string word[1][]);" and this prints out the error message. My code is below: #include <cs50.h> #include <stdio.h> #include <string.h> string cypher_word(string word[1][]); int main(int argc, string word[1]) { if (argc ==2) { printf("%s" , cypher_word); } else { printf("INVALID\n"); } string cypher_word(string word[1][]) { int i= 0, char ch[] = word[1][]; for (i=0; ch[i] != '\0'; i++) { switch(ch[i]); { case 1: { if (ch[i]== 'a')||(ch[i]== 'A') { ch[i]='6' } } case 2: { if (ch[i]== 'e')||(ch[i]== 'E') { ch[i]='3' } } case 3: { if (ch[i]== 'i')||(ch[i]== 'I') { ch[i]='1' } } case 4: { if (ch[i]== 'o')||(ch[i]== 'O') { ch[i]='0' } } } } return cypher_word; } } Can someone help me to fix this without using the pointer implementation. Thanks!