How do I remove an element of an array and shift the remaining elements down. So, if I have an array,
array[]={1,2,3,4,5}
and want to del
Programming Hub randomly provided a code snippet which in fact does reduce the length of an array
for (i = position_to_remove; i < length_of_array; ++i) { inputarray[i] = inputarray[i + 1]; }
Not sure if it's behaviour that was added only later. It does the trick though.