CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Sep 2010
    Posts
    15

    Problem with const int.

    Sorry to ask simple question, but, even after googling I couldn't solve my problem. Hope you guys can help me.
    Code:
    const int i=100000;
    const int j=32;
    __int64 A[i][j];
    ...
    It compiles but when I run the .exe file it gives an error. The error is like:
    .exe has encountered a problem and needs to close. We are sorry for the inconvenience. ....... Send error report/Don't send.
    But, when I decrease one zero in i's value (i.e. when const int i=10000 it works fine.
    What is the problem here and how can I solve it?
    Thank you.
    Last edited by ritika_sharma82; February 9th, 2011 at 09:23 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured