vector having elements 0,4,0,5,0,7 . element 0 to be deleted and resulting vector should contain elements 4,5,7
Delete a particular element in vector
You can traverse the vector and use vector erase function wherever required.
Refer this:
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.