Posts

Showing posts from December, 2021

27. Array Operation(insertion/deletion) in C

  #include <stdio.h> int main (){     int arr [ 10 ];     int insertValue ;     int position ;     int size ;     printf ( "Enter the size of array: \n " );     scanf ( " %d " ,& size );     if ( size > 10 )     {         printf ( "Memory Overflow" );     }     else     {         printf ( "Enter the array value :" );         for ( int i = 0 ; i < size ; i ++)     {         scanf ( " %d " ,& arr [ i ]);     }     printf ( " \n The values of array are : \n " ); //traversal     for ( int i = 0 ; i < size ; i ++)     {         printf ( " %d |" , arr [ i ]);     }     //insert any value in between unsorted array       printf ( " \n Enter the position of array at which...