How can I catch runtime error in C++
<p>By referring to <a href="http://stackoverflow.com/questions/315948/c-catching-all-exceptions">http://stackoverflow.com/questions/315948/c-catching-all-exceptions</a></p>

<pre><code>try {
    int i = 0;
    int j = 0/i; /* Division by  0 */
    int *k = 0;
    std::cout &lt;&lt; *k &lt;&lt; std::endl;  /* De-reference invalid memory location. */
}
catch (...) {
    std::cout &lt;&lt; "Opps!" &lt;&lt; std::endl;
}
</code></pre>

<p>The above run-time error are unable to be detected. Or, am I having wrong expectation on C++ exception handling feature?</p>
