I just started learning c++
. [MinGw
, c++14
].
If I want to transfer the control of a program to certain part of the code such that the control doesn't flow to any other part of the code. which is more efficient ?
- Using
switch
withgoto
statement and dividing the program into fragments by using {..} - Using
switch
withfunction call
pls. suggest if there's an other way more efficient than these 2 mentioned above!