goto Statement
The same search could be written in C++ as follows:
// a C++ search of a doubly nested loopfor (int i = 0; i < 100; i++)
for (j = 0; j < 100; j++) if (field[i][j] == GOLD) goto FoundGold;foundGold: // ... execution comes here on found value