```
void moveZeroes(int* nums, int numsSize) {
int i = 0, j = 0;
while (nums[i] && i < numsSize){ i++, j++; }
for (; j < numsSize;j++){
if (nums[j]){
nums[i++] = nums[j];
nums[j] = 0;
}
}
return;
}
```