* Windows doesn't support variables for specifying the array size. * This PR uses malloc to fix this issue.