What I need to do is implement a function with the prototype:

void squeeze(int arr[], int& size, int val);

The function has to remove all occurrences of val from arr and update size accordingly. I am quite new to C++ and am not able to figure out how to do this. Does anyone have any ideas?

Thanks