Max size of 2D matrix ?

Hi guys,

I have problem of initializing a 2D matrix. I want to initialize matrix[400][400] but my Visual Studio doesn't allow me. There is a runtime error if I make any matrix that has more than 40,000 elements (400*100).
Can anyone please give me some hints to get around this problem?

Thank you
Last edited on
Dynamic allocation, maybe.
Yeah, I did that and it solved the problem.
Thank you for your quick reply :)
Topic archived. No new replies allowed.