Please tell me how to delete an element from a C++ array.
My teacher is setting its value to 0, is that correct?
: int main() { int a[100],x,i; cout<<"enter the no. of elements(max 100): "; cin>>x; for(i=0;i>a[i]; cout<>b; for(i=0;i=pos) { a[i]=a[i+1]; } } cout<<"new array:"<