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

One theme of this passage is "a good sense of humor is a valuable asset." Which sentence from the passage best supports this theme?
according to William Allen White what were two reforms the Progressives supported to expand democracy?
Is quarts more or pints
Comparative advantage emerges because of the presence of:
A test charge is introduced into the electric field of a charge. It feels a force of 2F where the electric field is 2E. What would the force on the test charge
find the domain of the following function below. f(x)=3x-5/2
Which romantic concept was most closely linked to the overwhelming limitlessness of god?
Which discipline of Earth and space science is concerned with the study of the planets and stars? astronomy biology geology oceanography
This is an ADDMATHS QUESTION so I'm not sure if anyone can help me but please try to ㅠ ㅠ: Find the equation of the normal to the curve y=ln(2x^2 - 7) at the poi
What multiplication expression can you use to solve 627÷11?