Given a linked list of the following nodes:
struct Node
{
char item;
Node *pNext;
};
Define a function that inputs the head pointer to a linked list of Nodes and
searches the list for two consecutive same characters. If it finds two
consecutive same characters, it should return the address of the first Node
containing the character, otherwise it should return NULL.
I have tried doing this without recursion but I am getting stack dump.
Can some one help please..
This is my code: