I want to write a function that helps the user to insert N number of people, with their names and age.

For example:

```none
4
John Williams 37
Michael Douglas 65
Will Smith 51
Clark Kent 33

```

Then, I've to find the oldest one based on the `age` and print the name and age:

```none
Michael Douglas 65

```

EDIT:

I have a NEW code which is this one:

```cpp
#include <stdio.h>

int main()
{
  char peopleName[5][20], peopleAge[5];
  int i;
  int maxAge = 0, maxName = -1;

  for (i = 0; i < 5; i++)
  {
    printf("Name & Age %d :", i + 1);
    scanf("%s", &peopleName[i]);
    scanf("%d", &peopleAge[i]);
    if (peopleAge[i] > maxAge)
    {
      maxAge = peopleAge[i];
      maxName = i;
    }
  }

  printf("%s %d", peopleName[maxName], peopleAge[maxAge]);
}

```

My question is: How can I change from having 5 people to N number of people (what I mean is, How can I choose the number of people I can input)?