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

Maria works as a florist and worked 15 hours last week and earned 112.50. At that rate, how much will she earn if she work for 10 hours?
How do you write an equation in slope intercept form with a point and the slope?
Explain how the sound devices you interpret the poet feelings about Harriet Tubman
How many grams of naoh would be needed to make 0.50 l of a 1.25 molar naoh solution? 2.5 grams 16 grams 25 grams 12 grams?
How have land grants survived over time? (New Mexico History)
Write the equation in general conic form of the circle with center (2, 3) and r = 7
I need help on question 5
During a format war, describe how competition occurs and how a price war can take shape
In a right triangle ΔABC, the length of leg AC = 5 ft and the hypotenuse AB = 13 ft. Find: The length of angle bisecor of angle A
the scale factor of a blue print of a wall to the actual wall is 0.07. the area of the actual wall is 36ft2 what is the area of the wall on the blue print