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 :
A[0]=27;
A[1]=10;

Declaration and initialization of array :

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

Array

How to access the array
-> By for() loop
skeleton: for(i=0;i<5;i++){
printf(“%d”,B[i]);
}

Raman

Related post

Leave a Reply

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