Well your for loops are wrong since they only loop to 100 instead of 1000. What is the error that you are getting? What compiler? What OS? 1000*1000 = 1000000 which is 1 million. That is pretty big for a stack array but I don't know how big your stack is.
I am sorry the loops were meant t go up to 1000 but that s not quite the point since even the program
produces the same error....!!
The compiler is Dev-C++ and the error I get is not from the compiler but from Windows itself...
I get the usual message "an error as occurred with Untitled1.exe" and at the end I have the option to Notify the problem to Microsoft and I choose "Dont's send"...
let me ask a question then...how come Matlab can easily handle a 1000x1000 matrix whereas c++, which is much more powerful, cannot do such a thing?