Flow-control structures: Difference between revisions

Content added Content deleted
m (→‎{{header|AutoHotkey}}: Minor indentation and casing edit)
m (→‎Exceptions: nl ww)
Line 177: Line 177:
=== Exceptions ===
=== Exceptions ===
{{works with|GCC|4.0.2}}
{{works with|GCC|4.0.2}}

Exceptions are a way to give control back to a direct or indirect caller in case of an error. Note that throwing exceptions is usually very expensive, therefore they generally should only be used for exceptional situations.
Exceptions are a way to give control back to a direct or indirect caller in case of an error. Note that throwing exceptions is usually very expensive, therefore they generally should only be used for exceptional situations.
<lang cpp> #include <iostream>
<lang cpp> #include <iostream>
Line 249: Line 250:
}
}
}</lang>
}</lang>



=={{header|D}}==
=={{header|D}}==