what is array in C language?
Home
/
Computer Science
/
what is array in C language?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
That means it can not contain different data types like float,char,int in one array.
If we declare array of int than it only contains elements of int type only.
Index of array is starts from 0.
Elements in arrays are stored in sequential manner.
#ARRAY DECLARATION:
Data_type array_name[array_size];
Array is the collection of similar element of same datatype.
Explanation:
Datatype array_name[size];
For example : int av[90];
1D array: When the elements is stored in single row or single column then it is called 1D array
2D array:When the elements is stored in row and column both then it is called 2D array .
Learn More :