How to declare array in c? Briefly explain the different types of array with simple example.
1. Array in c is declared using the following syntax:
data_type array_name [array_size];
For example
int marks[10];
2..There are two types of array in c:
a. Single dimensional array:
For example
string names[3];
b. Multidimentional array:
For example
double prices[5][8];
Comments
Leave a comment