English

Write a statement to declare an integer array of 10 elements. - Computer Applications

Advertisements
Advertisements

Question

Write a statement to declare an integer array of 10 elements. 

Answer in Brief

Solution

Statement to declare an array containing 10 integers:

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

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: Arrays (Single Dimensional and Double Dimensional) - Review Insight [Page 236]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 3 Arrays (Single Dimensional and Double Dimensional)
Review Insight | Q 7. (ii) | Page 236
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×