printf("ENTER THE POS FRM WHERE U WANT TO DELETE ELEMENT\n");
scanf("%d",&j);//SUPPOSE U HAVE TO DELETE 2ND ELEMENT I ARRAY..//
for(i=0;i<5;i++)
{
for(j=j+1;j<5;j++)//STARTS J=3 //START THE LOOP FROM THE NEXT POSITION FROM WHERE U HAVE TO DELETE THE ELEMENT & JUST OVERRITE THE ELEMENT OF NEXT POSITION TO THE POSITION FROM WHERE U HAVE TO DELETE THE ELEMENT..&ALSO SHIFT ELEMENT BEHIND IT TO 1 POSITION FORWARD...//.
arr[j-1]=arr[j];//arr[2]=arr[3]..& again..arr[3]=arr[4]//MAKE JTH ELEMENT OF ARRAY TO (J-1)TH ELEMENT OF ARRAY..//MEANS (J+1)-1=J TO ACTUALL VALUE OF POSITION OF J WILL BE OVERRITED 1ST TIME..//
}
for(i=0;i<4;i++)
printf("arr[%d]=%d\n",i,arr[i]);//NOW PRINT THE ARRAY ..AFTER DELETING OR U MAY SAY OVERRITING THE ELEMENT OF ARRAY..//