Topic-27:Array

What is the requirement of an array?

To overcome the disadvantages of variable we will use array .

What is the disadvantages of variable ?

The disadvantages of array is variable cant not hold multiple value at a time , means one variable can hold only one value at a time .

What is Array?

  • Array is just like a container where we can stored multiple value at a time .
  • Array is the collection of similar type of data items that stored at contiguos memory location .

Declaration of an Array

Declaration and Initialization of an Array

Declaration and Initialization of an Array(cont.)

Accessing element of an array

Accessing element of an array through loop

Accessing element of an array using pointer arithmetic

Leave a Comment

Your email address will not be published. Required fields are marked *