हिंदी

Identify the correct array declaration statement.

Advertisements

प्रश्न

Identify the correct array declaration statement.

विकल्प

  • int a[10];

  • int a[]=new int[10];

  • int arr[i]=10;

  • int a[10]=new int[];

MCQ
Advertisements

उत्तर

int a[]=new int[10];

Explanation:

The array name, as well as the new operator and the array size, must be given when declaring an array.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2021-2022 (March) Set 1
Advertisements
Share
Notifications



      Forgot password?
Use app×