| i understand what you are saying. but in my 2-d array, there are some criterias to meet, i am not just checking it row by row and column by column till the end. if that's the case then i can use 2 nested for loops. according to the criterias, first if i go with a row or column, if i hit '#' or marked empty space then i have to turn horizontally or vertically within the square 2d array. that's why i find recursion function and bunch of if else statements best suit for this situation.
now my concern is, on the very first message that i posted, are there any errors related to basic concept in C? coz it doesn't do any job and produce output. |