But still i have one more doubt that is-
As per my knowledge there is no default value given to an array in c++,garbage value is present.
Also i haven’t initialized my whole array by zero, still it is working and giving correct answer.
Also i checked the values of my array after initializing it.They were zero.
What’s the matter here?