Can you please explain to me why in the printing statement arr[top] [i] and arr[i] [right]
I’m not able to understand the difference between the two. Does it mean that top and i depict row in the first statement? Also, is it like predefined that i in the first case has to be of the fixed coloumn generally while initializing arrays?
Doubt in printing statement
@rg361 arr[top][i] means you are accessing row = top and col = i and in the second case you are accessing row = i and col = right. And can you elaborate your question : ‘‘Also, is it predefined that i in the first case has to be of the fixed column generally while initializing arrays?’’ I am not able to get what do you mean by fixed column.
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.