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

Thread: Wierd output

Threaded View

  1. #4
    Join Date
    Feb 2008
    Posts
    28

    Re: Wierd output

    Quote Originally Posted by MrViggy
    Actually, the compiler will not initialize any of the variables to any value. So, if uninitialized, they will contain garbage.

    However, this is invalid, and shouldn't compile:
    Code:
    bool used[n];
    You cannot create a dynamic array in this manner.

    Viggy


    well the boolean part does compile , it actualy does go to n and not n-1 dunno why but i tested it and it printed out the right values but ill try it.ill post the results...



    result : nothing changed;
    Last edited by KRUNCH; March 5th, 2008 at 09:36 AM.

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