Intersection of two link list

https://ide.codingblocks.com/s/57792 please debug the code

Hi Neeraj, your code is giving wrong output when the last element is the intersection point because the while loops at line number 40 and 41 are not accessing the last element. Just change it as:

while(b!=NULL){
while(a!=NULL){

You can refer to the corrected code here https://ide.codingblocks.com/s/57832

thankyou so much @Khushboo.aperciate your support