Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
for (int i = 0 ; i < 10 ; ++i) { for (int j = 0 ; j < 10 ; ++j) { goto label; } } label: // stuff
gotoと変数は解放されますかi? j私が思い出したことからgoto、スタックを巻き戻したり、クリーンアップを行ったりしないので、この場合、何かが台無しになりますか?
goto
i
j
ええ、それはきれいになります。C++ はスコープ外の変数を解放するためです。