Most voted "goto" questions
Goto is a statement present in several programming languages that transfers the control flow from one application to another part of the code, literally "skipping" between subroutines.
Learn more…8 questions
Sort by count of
-
106
votes5
answers12967
viewsWhy is the use of GOTO considered bad?
Some languages, such as C, still have the instruction goto. I have always heard that using it is not a good practice. I would like to know: What would be the reasons to avoid the goto and what…
-
6
votes1
answer670
viewsHow to use GOTO in C to implement finite automata?
It’s my first time using goto in programming and I made a simple code here to try to implement the automato (must have much better modes), but my code is crashing at the time of running, I do not…
-
1
votes2
answers110
viewsProblems in batch droplet
I am beginner in batch And I’m trying to create a very simple alarm clock program. The user must set the time you want the alarm clock to ring and the program will check the time of the computer. If…
-
1
votes1
answer116
viewsHow do you make an array of Labels in C/C++?
It is a fact that exists in Assembly (Nasm) and it is a fact that this is a quick way to follow to a point of the program among several. Here is an example code for x64 where you choose one of five…
-
1
votes1
answer137
viewsHow to get a program running in C without looping and compiling again?
# include <stdio.h> int main () { int Senha, Tentativa; int Contador_De_Erros = 1; printf("Vez do jogador 1 jogar\n\nLembrando que a senha tem que ser um numero entre 0 e 100\n\n");…
-
0
votes4
answers362
viewsHow do I skip the "Finally" block, in C#, when the exception is generated?
If the exception is generated, I want to know if there is a way to "skip" the execution of the block finally. If there is no exception, the finally perform normally. With the goto didn’t work. Code:…
-
0
votes1
answer201
viewsCorrect use of "goto" with "if Else"
I have a question about the correct use of the "goto", I made a small example that illustrates my doubt: <?php $valor01=10; $valor02=8; if($valor01 > $valor02) { echo "valor01 é maior que…
-
-1
votes1
answer865
viewsConversion from flowchart to code
I am trying to convert a sizable size flowchart to Arduino code. The flowchart is as follows:: Considering your size, I’d feel more comfortable using the remote goto as a flow control. However I…