Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 951 Bytes

File metadata and controls

27 lines (18 loc) · 951 Bytes

Arrays

Arrays are most basic data structures used in programming. Arrays are the data structures that contains group of elements. Typically these elements are all of the same data type, such as char or an int. All arrays consist of contiguous memory locations. We can access the elements with their index. The lowest address corresponds to the first element and the highest address to the last element.

Array Declaration type arrayName [ arraySize ]; type is the datatype of array elements

Array Initialization int array1[] = {1,2,3};

Accessing Elements of Array int variable1 = array[0];

Source

YouTube