Suppose we initialize array as
int a[5]={10,20,30};
Then what will happen?
Answers
Answered by
2
Explanation:
The remaining the 3 elements will null value. There will be no error though. Try compiling it and see the output of the array.
I'm a Xth student opted for computer applications.
Answered by
2
Answer:
Answer is 0
Explanation:
It depends on the compiler that we are using.
In Windows it will be like
The remaining two elements will be stored as 0 i.e a[3] =0, a[4]=0;
Similar questions