English

Which of the following is the correct usage? - Computer Applications

Advertisements
Advertisements

Question

Which of the following is the correct usage? 

Options

  • int a[−40] 

  • int a[40]

  • float a[0 − 40]

  • None

MCQ

Solution

int a[40]

Explanation:

This is correct because it provides an array of 40 integers. The array size is positive, and the syntax is valid. 

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

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 3 Arrays (Single Dimensional and Double Dimensional)
EXERCISES | Q I. 1. | Page 238
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×