Is it possible to store the address of a label in a variable and use goto to jump to it?

前端 未结 14 1615
执念已碎
执念已碎 2020-12-04 09:35

I know everyone hates gotos. In my code, for reasons I have considered and am comfortable with, they provide an effective solution (ie I\'m not looking for \"don\'t do that\

14条回答
  •  不知归路
    2020-12-04 10:33

    According to this thread, label points are not a standard, so whether they work or not would depend on the compiler you're using.

提交回复
热议问题