0

Say I have an integer array like such
#define MAX 5
int bar [MAX] = {0};
int foo [MAX] = {3,1,0,0,0};
Now I'd like to shift this array so that all null entries are to the left, i.e. foo = {0,0,0,3,1}.
I thought I could do this by
Finding the number of shifts I must perform
Using memmove() t...