how do i conduct a search in linked list to return all strings starting with the letter provided.. eg search('a',p) should return all words staring with a in the list p
i got this but its wrong..how do i fix it ??Code:int search(char check,Node *p) { while( p!= NULL ) { if(p->word == check) { printf("%s",p->word); } p = p->next; } return 0 ; }