Re: top and allocation issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux