Single Dimensional Arrays in C

Last Updated Nov 20, 2015, 07:00:14 PM

The one-dimensional arrays are also known as vectors in mathematics. The data is stored in a linear form in single dimensional array. Every array contains only one subscript like array[]

array types in c

If an array is declared with only subscript such as [] then it is called as single dimensional array or a linear array.

Array Types

In the above single dimensional array image, if we want to access the second element which is Ferrari we can simply write cars[1], and to access fourth element cars[3] which is Audi.


Example Try It Now

Other Array Topics you might want to learn

Array Basics in C

Arrays Types in C

Two Dimensional Arrays in C