Skip to content
Question Bank (3 marks) · Q29

Q.Write the syntax for multi dimentional arrays.

Karnataka PUCTextbookShort· 3mImportance★★★★★est
88% · 135/154 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

[!TLDR]

Declare a multi-dimensional array as data_type array_name[size1][size2]...[sizeN]; e.g. int a[3][4];

A multi-dimensional array stores data in more than one dimension (rows, columns, and so on). It is declared by writing the base data type, the array name, and one pair of square brackets giving the size for each dimension:

data_type array_name[size1][size2] ... [sizeN];

Examples:

int a[3][4];        /* 2-D array: 3 rows x 4 columns */
float b[2][3][4];   /* 3-D array */ …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.