Tuesday, November 30, 2010

Return Statements

The value returned by the following function is undefined:

int func() { if (0) return; }

This is a source of some nasty latent errors.

No comments:

Post a Comment