Segmentation Error in declaring strings

My code for the problem LCS for 3 strings gives a segmentation error. I tried using a GDB Debugger and it showed that I can’t access the 3 strings variables I have declared in first line of my main(). I am not sure why am I getting this error. Please help.

Here is my code : https://ide.codingblocks.com/s/460407

hello @Yash5646

a) make ur dp array global(in global scope we can declare large size array compared to function scope)
b) pass all string by reference to save copying time

My code is still giving 0 as output and I am not sure what exactly am I doing wrong in my algo. Can you please help. My updated code : https://ide.codingblocks.com/s/460407

check now->

a) use -1 for memoisation
b) u were comparing three char incorrectly

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.