Quote:
Is it possible to have this in 2 dimensional array?
Yes, it is possible.
Quote:
can you please tell me why is it possible to have codes like this?
Because the language permit it and programmer want it that way which is just legal.
The question you missed: Is it sensible to code that way?
Form the code I see, it is 1D program fitted in a 2D array, there is no reason to do it that way, it complicate things for no reasons.