PowerPoint Presentation
Array is a collection of data items, all of the
same type, accessed using a common name.
10 20 30 40 50 60
0 1 2 3 4 5
Array _ name
Size of Array
Index of array
10 20 30 40 60 70
It is An Array
Memory
a b 1 c 2 4 d 5.7
It is not an Array because it store diff
data types elements
C programming language provides a data structure
called the array, which can store a fixed-size sequential
collection of elements of the same type.
1 2 3 4 5 6 7 8
Array_ name
0 1 2 3 4 5 6 7
Array index numbers
Array _elements
60 70 80 90 100
array[0] array[1] array[2] array[3] array[4]
Size of the array =5
Int array[5]={60,70,80,90,100}
20 25 28 34 37
Int age[5] = { 20,25,28,34,37 }
age[0] age[1] age[2] age[3] age[4]
An array is a group of contiguous memory
locations that all have the same name and type.
To refer to a particular location or element in the
array, we specify the name of the array and the
position number of the element to which we
refer.
Int array [ 4] = [10, 20, 30, 40]
A wonderful tutorial about an Array

A wonderful tutorial about an Array

  • 1.
  • 2.
    Array is acollection of data items, all of the same type, accessed using a common name. 10 20 30 40 50 60 0 1 2 3 4 5 Array _ name Size of Array Index of array
  • 3.
    10 20 3040 60 70 It is An Array Memory a b 1 c 2 4 d 5.7 It is not an Array because it store diff data types elements
  • 4.
    C programming languageprovides a data structure called the array, which can store a fixed-size sequential collection of elements of the same type. 1 2 3 4 5 6 7 8 Array_ name 0 1 2 3 4 5 6 7 Array index numbers Array _elements
  • 5.
    60 70 8090 100 array[0] array[1] array[2] array[3] array[4] Size of the array =5 Int array[5]={60,70,80,90,100}
  • 6.
    20 25 2834 37 Int age[5] = { 20,25,28,34,37 } age[0] age[1] age[2] age[3] age[4]
  • 7.
    An array isa group of contiguous memory locations that all have the same name and type. To refer to a particular location or element in the array, we specify the name of the array and the position number of the element to which we refer. Int array [ 4] = [10, 20, 30, 40]