I know a very large two-dimensional arrays in C needs a long identifier for the variable type when assigning memory to the array to avoid stack overflow errors and memory issues. Suppose I intend to assign memory to my matrix A which should hold a very large number of numbers using malloc, how am I supposed to go about it?
int main() {
    int rows = 20000;
    int cols = 20000;
    // How do I define the two-dimensional
    // array using 'long int'?
    long long int** A = new long long int(rows);
    // I got that from this site, but it's
    // wrong. How do I go about it?
}
 
     
    