Take two pointers one at the start and one at the end, replace swap start and end character.
Move start pointer forward and end backward till start is less hen end.
void rverese_array(char arr[])
{
int start = 0, end = strlen(arr) - 1;
while (start < end)
{
char temp = arr[start];
arr[start] = arr[end];
arr[end] = temp;
start++;
end--;
}
}