Given an array of random numbers, Write a c code to move all zeros to end of an array. An array contains only positive number.
For example -
Input
Output
// Move all zero at the end
For example -
Input
int arr[] = {1,6,0,3,8,9,0,2};
Output
// Move all zero at the end
int arr[] = {1,6,3,8,9,2,0,0};