Longest Common Prefix

Here is the function implemented;- https://ide.codingblocks.com/s/445159, please specify the error in the code as it is giving me runtime error.

Hello @Sakshi2004 could you please mention which question you are trying and where you are trying?

@Sakshi2004 corrected code:

Have you done the changes? The question is:- https://leetcode.com/problems/longest-common-prefix/ and also if changes done please comment them so that I know what are the changes please.

@Sakshi2004 yes i have already coorcted your codde and commented the mistakes: