Computer Science, asked by harshalhedau111, 6 months ago

Suppose we initialize array as
int a[5]={10,20,30};
Then what will happen? ​

Answers

Answered by pranav6140
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 manideepneelamani
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