हिंदी

Identify the correct array declaration statement. - Computer Applications

Advertisements
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

उत्तर

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 (April) Set 1
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×