Hello I have seen this Maximum size of local array variable but I want to know why that's ok if the array is set ion global and not ok if it comes after the main.
And another question in relation : Is it a good practice to have big memory objects that are defined in a.cpp and declared in a.hpp with extern ? Or better working with big memory defined in local fonction but defined as vector or new or malloc and passing them in fonction arguments.
It's see my experience that are those questions i have to resolve...
Thank You
#include <iostream>
using namespace std;
#define N (10000000000000)
int sd[N];
int main() {
// int sd[N];
return 0;
}