I want to know the properties of initializing array once in global scope and once in the function scope.
Let say:
char arr[4];
int main() {
.....
}
What will be the values in this array?
What with this option:
int main() {
char arr[4];
....
}
Is there any difference in the last case with this:
int main() {
....
}
int func1() {
char arr[4];
....
}
Will the result change in different compiler? Thank