Homeworkbuddy17
Homeworkbuddy17 Homeworkbuddy17
  • 13-12-2016
  • Computers and Technology
contestada

What is the best way to locate where my C program gets into an infinite loop

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 13-12-2016
You could put in a printf() statement to print the value of the index into each loop that you have. You can also step through each loop and read EXACTLY what the program is doing. This is a good skill to develop because your mind has a habit of "fixing" small errors that computers don't.

Computers do exactly what they're told to do, not what you want the to do.
Answer Link

Otras preguntas

Why did some people support Alien and Sedition Act event?
name each lettered part of the circuit and explain what it does
which one of the following symptoms indicates that a person is in the alarm stage of stress? A. High Level of Concentration B. Hyperventilation C. Racing Hea
the united states constitution of 1787 represented an economic and ideological victory for the traditional american political elite
From where do we obtain the cells of our test subject?
Why did Spanish leaders want to push Spanish control into North America in the mid 1500s
whats the difference of 89,24&17
Each of 25 students in group A read for 45 minutes. Each of 21 students in group B read for 48 minutes. Which group read from more minutes explain
How did the population of Western Europe change after the collapse of the Roman Empire?
Which of the following statements is true about the Emily Dickinson poem 'Because I Could Not Stop For Death?' A. It portrays death as something not to be