NCERT Solutions Class 12 Computer Science Array

The array is a kind of data structure that can store a fixed size of the sequential collection of elements of the same type. An array is used to store a collection of data but it is often used as a collection of variables of the same type.

Declaring an Array

The syntax for declaring an array in C++

type name [elements];

Here, the type is a valid data type like float, int, char, and double.

Initializing an Array

int marks [5] = { 26, 3, 71, 10, 23081 };

Types of Arrays:

Single Dimensional Array

float x[2];

Two Dimensional Array

float x[2][4];

Multi-Dimensional Array

float x[2][4][3];

To understand the concepts of array students should practice the maximum number of problems related to the array and can also practice NCERT questions. For better understanding students can also refer to NCERT solutions for class 12 array provided here in PDF format.

Download NCERT Solutions for Class 12 Computer Science Array

Leave Your Answer