Hey all,
I'm trying to use a 3 element array and keep it sorted. So when i get a new value that should be put at the start of the array, I shift values down in the array like this:
array[2] = array[1];
array[3] = array[2];
array[1] = result;
However, I've realized this does not work because of the way arrays are addressed. Is there anyway to do this via unary operators?
Thanks,
barefoot