I wanted to ask that when we ouput the above 2 d array will be getting all elements as 0 or garbage values.
Just to clarify.
Int arr[3][3]={0}
@jsn853
Above array is 3*3 2D arary with all element initialise with zero. So when you print this array, you will get all elements as 0.
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.