I've been trying to find the solution to this, but have been consistently coming up empty handed.

Say I have 2 global arrays, one of char and one of int

Code:
#include <stdio.h>
#include <string.h>

int intArray[]; // assumed to have 1 element
char charArray[]; // assumed to have 1 element

int main(void)
{
int newsize;
maxsize = findNewSize();
}
Is it possible to change the size of the arrays once I have calculated the max size? How exactly would this be done?

Thank you very much for any help.