what is array in C language?
Answers
Answered by
3
An array is a collection of similar data types of same size.
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];
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];
aatif5:
Thanku so much bhaiyyu
Answered by
0
Array is the collection of similar element of same datatype.
Explanation:
- An array is the homogeneous mixture of element of same datatype .It means the array will store the elements of same datatypes .Following are the syntax to declared any array in c language .
Datatype array_name[size];
For example : int av[90];
- We can access the rules according to index value .The array index value is always start with the 0 index value .
- There are mainly 2 types of array in c language
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 :
- https://brainly.in/question/8457756
Similar questions