Please tell me how to delete an element from a C++ array.
My teacher is setting its value to 0, is that correct?
Setting it to zero will still make that zero appear when you iterate over the array, or when you access it by index. If you do not want that, you have to copy all elements after the one you deleted one step towards the beginning of the array.