The information in this article applies to:
SUMMARY
In Microsoft C and in Microsoft C/C++, the goto statement and its
corresponding label must be part of the same function; no other
restrictions apply. However, because different compilers optimize for
loops and allocate stack space for automatic variables in various
ways, using a goto statement to transfer flow-of-control into the
middle of a for loop is not portable and is considered unsafe.
Additional query words:
Keywords : kbLangC kbVC kbVC100 kbVC150 kbVC200 kbVC210 kbVC400 kbVC500 kbVC600 |
Last Reviewed: June 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |