int arr[10] = { -2, 8, 23, -160, -74, 8, 85, -47, 12, 7 };
PrintMaxPartAscending(arr, 10);
that's the array

void PrintMaxPartAscending(int arr[], int size)
{
int i, j = 0, k = 0, counter1 = 0, num = 0, counter2 = 0;
printf("The original array is :\n");
for (i = 0; i < size; i++)
{
printf("%d ", arr[i]);
}
printf("\n");

for (i = 0; i < size; i++)
{
if (arr[i] < arr[i+1])
{
j = i;
counter1++;
}
}

for (i = 0; i < counter1; i++)
{
printf("%d ", arr[i]);
}
printf("\n");

}


problem with code c programming...what is not good here?
need help pls