मराठी

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×