Regarding Intersection point of two linked lidt

this is the code for intersection point of two linked list.It is always returning -1.Please tell the mistake. https://ide.codingblocks.com/s/118845

hey @kushagrathebest, you should data instead of pointer in line 65, make it if(c1->data==c2->data) instead of if(c1==c2) .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.