The goto statement can lead to _______ if used indiscriminately.
- spaghetti code
- infinite loop
- syntax error
- recursion
Using the goto statement without careful consideration can lead to "spaghetti code", which is a term for code that is tangled and difficult to follow or maintain due to excessive jumps.
Loading...
Related Quiz
- If you want to force floating-point division in C++ when dividing two integers, one of the numbers should be _______.
- When is a copy constructor called in a C++ program?
- The members of a struct are _______ by default.
- A template that takes another template as a parameter is known as a _______.
- What is the primary purpose of encapsulation in object-oriented programming in C++?