What are default values for arrays like this:
char c[20];
?
BTW, Are there any?
If declared at namespace scope then c
will have static storage scope and will be zero-initialized so every element of c will have value '\0'
.
If declared in a function then c
will not be initialized. The initial value of the elements of c
will be indeterminate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With