Flow-control structures: Difference between revisions
Content added Content deleted
m (→{{header|Ada}}: lang tag) |
m (→{{header|C}}: lang tag) |
||
Line 23: | Line 23: | ||
===goto=== |
===goto=== |
||
One common use of goto in C is to break out of nested loops. |
One common use of goto in C is to break out of nested loops. |
||
<lang c> int main() |
|||
{ |
{ |
||
int i,j; |
int i,j; |
||
Line 35: | Line 35: | ||
out: |
out: |
||
return 0; |
return 0; |
||
} |
}</lang> |
||
=={{header|C++}}== |
=={{header|C++}}== |