On Jan 31, 2008 5:29 AM, aiqur11 <[EMAIL PROTECTED]> wrote:

Quite catastrophic.

> If `Yes' then why does not C++ provide bound checking on array
> operations and who is responsible to prevent array overruns?

Efficiency. Arrays reads and writes are much faster. Who is
responsible? You are. You can always write your own smart array class
to do the bounds checking for you, or use one of the container classes
like vector if you are worried about array abuse.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to