How to use the goto statement in C++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to use the goto statement in C++?

Please provide a satisfactory answer

22nd Feb 2019, 9:02 AM
Sagnik Ganguly
Sagnik Ganguly - avatar
1 Answer
+ 1
it's not a good idea to use goto in C/C++. it's an old programming concept. you may think it is practical but it is sloppy. use any other programming concept to change the flow of your program.
22nd Feb 2019, 9:07 AM
Bahhaⵣ
Bahhaⵣ - avatar