Tuesday, September 8, 2009

DELETE ELEMENT FROM AN ARRAY AT DESIRED POSITION USING C


Write a program (wap) to delete
an element at desired position from an array in c language



#include

int main(){



int a[50],i,pos,size;



printf("\nEnter
size of the array: ");



scanf("%d",&size);





printf("\nEnter
%d elements in to the array: ",size);



for(i=0;i



scanf("%d",&a[i]);





printf("\nEnter
position where to delete: ");



No comments:

Post a Comment