Respuesta :

Answer:

Option (c)

Explanation:

In java language this type of declaration is possible. Full declaration would be:

int[] ar=new int[n]; //where n is size of array to be passed.

But, this is not possible in c,c++. In java, int[] ar, int ar[] ,int *ar all are creating an array. Array is a data structure which stores elements of similar data type and in a contiguous memory. Array can be initialized at the time of declaration as well or it can be read from user with the help of for loop as well. In c,c++ array can be initialized by int arr[] or int *ar only .

Answer:

The correct answer is option(c).

Explanation:

Array is the collection of similar kind of datatypes or elements .In the array the memory is stored in the continuous manner.

In  the java  language the array is treated like an object. some of the important points regarding array in java language is given below

  • we can declare the by follow the following syntax

 datatypes[] variable name.

  • so  option c is the  correct answer.
  • All the option does not follow the right syntax of array in java language .
  • So option(a),option(b) and option(d) are the incorrect answer.

ACCESS MORE