Array  

Array are used to store multiple values in a single variable,instead of declaring  seperate variables for each value.
They are used to store similar types of elements.they can be used to store collection of primitive datatypes.
Array can also store derived data type such as structures,pointers,etc.
         arrays
The elements of array are given contiguous memory locations.

Array Declaration:- To declare an array,define the variable type,specify the name of array followed by square bracets[] and specify the numbers it should store,

           
The starting address of the very first element of the array is called base address of the array.
         size of array=Upper bound-Lower bound+1
Types of Array:- Array are of differnt types:
  • One-dimentional array
  • Multi-dimentional array.

Comments

Popular posts from this blog

Covid-19 Analysis and Visualization using Plotly Express

Artificial Intelligence (Problem Solving)

Linear Regression