how to remove zeros from int array? for ex if i have a array 1,2,0,34 than result is 1,2,34.
i was thinking may be use trim function?
another idea was to put space. for ex 1,0,2,0,3 than reslust is 1, ,2, ,3
note iam trying to do this without making another array.
int a[5]; //has the value 0,1,0,3
for(i = 0; i < 5; i++)
{
if(a[j] == 0)
a[i] = ' '?
}