I have a temporary array that gets used when needed and then left for the next time it is needed. So how can I reset the whole array without going through the long way ->

long way

temp_array[0]=1;

temp_array[0]=2;

temp_array[0]=3;

temp_array[0]=4;

temp_array[0]=5;

I have tried ->

temp_array[]={0, 0, 0, 0, 0}; and

temp_array[5]={0, 0, 0, 0, 0};

James