no output ??
Rat in a maze recursion
Hey @hg11110000
comment this :
h_g()
also make arrays global because max space u can allocate inside func is close to 10^6
and globally is close to 10^8
now try to debug
@Kartikkhariwal1
didn’t got what u r saying ?
the code is giving segmentation fault
constraints show max value or m and n as 1000
Check this
Now try to debug
Also its a char matrix u are storing it as int
Here updated your code and mentioned the changes in comments : https://ide.codingblocks.com/s/365196 
If this resolves your query then please mark it as resolved 
thanks alot !
these small small mistakes screws everything…
also how to debug backtracking codes ???
i m finding it difficult due to the its bug length, more function calls etc 
Hey @hg11110000
For debugging any code ,debug it piecewise
Scan your code in the order it will be executed and find these small mistakes.