volume_mute

Is the following array defined as null or with 0 length?

publish date2020/10/17 00:35:00 GMT+11

volume_mute

int temp_array[];

Null
zero length

Correct Answer

Null

Explanation

The variable is defined with NULL value.  It could be initialized in the same statement by writing it like that if required to just make it with 0 length

int temp_array[] = {};

or

int temp_array[] = new int[0];

or it could be initialized in a separate statement

int temp_array[];

temp_array = new int[0];


Quizzes you can take where this question appears