Not printing as expected

sir, in the following code program is not printing the whole char matrix.

@aman17nov1999 corrected and commented (declare size as 9)


dont forget to hit like and mark resolved if cleared :smiley:

but sir i have initialised i and j from 1 . in this situation can we not goto <=8 ??

@aman17nov1999 yes you can but as you have declared it as char a[8][8] you can only go upto i<=7 so inc the size by 1
char a[8] means 0 to 7 is available

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.