My main()
function is -
int main(int argc, char *argv[]) {
std::cout << "Hello, World!" << std::endl;
int real[512][512] = {0};
int imaginary[512][512] = {0};
return 0;
}
It gives me segmentation fault
but if I comment out one of the 2D arrays it works. I'm working with images and previously 256x256
array worked but I don't know why it's giving that error.