Operation Performed on Array


  • Creation
  • Transversal
  • Insertion 
  • Deletion
  • Merging
  • Concatenation
  • Searching
  • Sorting
  • Reversal

  • Write a program to perform Creation & Transversal operation on Array / Static list.
    -  /* Creation & Transversal. */
    #include<stdio.h>
    #include<conio.h>
    main()
    {
void create (int[], int);
void traverse (int[], int);
int array[10];
create (array,10);
traverse (array,10);
    }
    void create (int a[], int size)
    {
int i;
printf ("Enter %d elements :-\n",size);
for (i=0;i<size;i++)
{
    scanf ("%d",&a[i]);
}
    }
    void traverse (int a[], int size)
    {
int i;
printf ("Elements are :-\n");
for (i=0;i<10;i++)
{
    printf ("%d\t",a[i]);
}
    }