How
to insert or add an element in the array at specific or desired posting by
using c programming language? Source code is as follow:
#include
int main(){
int
a[50],size,num,i,pos,temp;
printf("\nEnter
size of the array: ");
scanf("%d",&size);
printf("\nEnter
%d elements in to the array: ",size);
for(i=0;iscanf("%d",&a[i]);
printf("\nEnter position and number to insert: ");
No comments:
Post a Comment