[CentOS] top and allocation issues

m.roth at 5-cent.us m.roth at 5-cent.us
Thu Mar 3 19:34:13 UTC 2011


Michael D. Berger wrote:
> In a context where exceptions are caught, I ran
> the fragment:
>
>    cerr << "allocating" << endl;
>    char*    arr[100];
>    for (int jj = 0; jj < 10; ++jj)
>    {
<snip>
> Wherein do I err?

It would have been caught on 0 if that was jj++, *not* ++jj (increment
*after* the loop, not before).

         mark




More information about the CentOS mailing list