Computer Science, asked by hardipdhiman10051, 1 year ago

What value will an array element hold if the array is only declared not initialized (consider that the program is tried to be executed)?

Answers

Answered by mishti53
0

If the array is declared in a function, then the value is undefined. ... If the array is declared as a global one or as static in a function, then all elements are initialized to zero if they aren't initialized already.

Similar questions