Array

  • why there is a need of Array ?

  • Till now we have worked with datatypes like int,float ,which stores only single data at a time.
  • But, in a real life problem you will  have to face large number of data at a time.
    eg: to store marks of 100 students.
  • This, thing you can't do with data types like int ,float, etc.
  • For, that 'C' language provides with data structure called Array.
1D ARRAY
  • What is Array?

  • Array is collection of data ,which belongs to same data type.
  • If you have integer type of data then you have to go with int type of Array, if you have float type of data then you have to go with Array of float type and so on.
  • Because Array stores the data of same data type.
  • Data in Array is store in one sequence, which means one next to the another.
  • This functionality of storing data sequentialy,  Accessing data becomes very easy.
  • In Array each element has a unique index number which starts from 0.
  • See the below image ,to Understand array more better.
  • below is image of int type of Array
  • Types of Array




Further Concepts:



Practice Programs

  • Programs regarding Arrays
  • Programs Regarding 2d arrays
  • Programs regarding matrix
  • And lot more


Further Topics: