Declaration of Array

Share:

Declaration of Array

The general form to declare single dimension array is:
Type variable_name[size];
For Example:
Int age[10];

The general form to declare multi-dimensional array is:
Type variable_name[size 1][size 2]….[size n];
Example of two-dimensional array:
Int age[2][5];
This array has two rows and five columns.

IMPORTANT LINKS HEAR:
Array | Types of Arrays | Passing Array to Functions | Declaration of  Array| Initializing Arrays | Difference between an Array and an Ordinary Variablel
LINKS:
Array | Types of Arrays | Declaration of Array | Initializing Arrays | Difference between an Array and an Ordinary Variable | String | Declaring a string | Initializing a string | Different functions used to Input of Strings Data | Different Functions used to Output of strings data | Pointer | There are number of reasons for using pointers | Difference between An Array and Pointer | Storage Class | In C, there are four types of storage classes as below | Algorithm | Characteristics/Qualities of a good Algorithm | Flow Chart
ALL LINKS HEAR: Click me

No comments