What is the mistake in this code?


it is not printing any output… why??

sorry …check this one

sorry… check this link https://ide.codingblocks.com/s/150866

and also please tell me that why it is coming error when not writing return in line 33 and 36 of my code …please tell me the difference when writing return followed by function call and simply the function call without any return (as what i did earlier)…

plus the error of why this code is not giving any output ??

Kartik, I have edited your code a little bit,


Refer to this code, basically I have made some changes in the bool right function, logic is same, but I have used variables, instead of wht u have used in the entire for loop, also to avoid any error, I have also used 2-d array instead of 2d pointers.

thanks for the anticipation …but ican also do the same modification as of preteek bhaiyas code …can you please tell me the problem occuring in my code …and also about the difference which i asked above by not writing return …hope you understand

Ya sure, I let u know that

Kartik, I have already given explanations on your querry through chat. Pls refer to tht.