C and C++ concept overview before Starting data-structure.

  • Arrays
  • Structures
  • Pointers
  • Reference
  • Parameter Passing
  • Classes
  • Constructor
  • Templates

i) Arrays: it is defined as Collection of similar data elements.
declaration of Arrays: int A[5];

How To Access Arrays :

Declaration and initialization of array :

int main()
int a[5];
//with value initialization of arrays
int B[5]={2,4,6,8,10};

How to access the array
-> By for() loop
skeleton: for(i=0;i<5;i++){


Related post

Leave a Reply

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