Program To Allow The User To Insert Or Delete The Contents Of Array Using Interactive Iterations
/* Program To Allow The User To Insert Or Delete The Contents Of Array Using Interactive Iterations */ #include
#include
void main() { int num[20]; int i,j,sz,n; char ch,op; clrscr(); printf("\n enter no.of values(max.20)\n"); scanf("%d",& sz); for( i=0;i
=j;i-- ) num[i]=num[i-1]; sz++; break; case 'd': printf("\n enter element position\n"); scanf("%d",&j); if(sz==0) { printf("\n array is empty"); break; } for( i=j-1;i
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/