— The i and j in function intersect is un initialized. So they should contain probably garbage value.
The code line int i,j,k =0; only initialize k=0; May you should give value to i and j.
Message permanent page
— How to read 2 line of input string as a single string
— Conjugate 2 inputs or make your own input function
— Is there any predefined things were available for that
— Believe me, you won't succeed
— Hey go to this group,
http://t.me/c_cpp_india
— The issue is naming it caricaturally after India makes it look really bad, which is why I would just have named it Turbo C/C++
Message permanent page