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

Cheryl painted her living room walls with two different colors. She painted part of the room yellow and another part green. If the surface area of the walls in
Factor out the GCF from the given polynomial. 10^3 + 16^2 - 18x 10^3 + 16^2 - 18x = (Type your answer in factored form.)​
help please in this question?
HELP ME PLEASE I CAN'T FAIL THIS!!! To find the distance AB across a river, a distance BC of 319 m is laid off on one side of the river. It is found that B = 10
Edgar is at his friends house playing pool. There is a 1 in 4 chance that he will make his next shot. What is the probability that he will miss the shot? please
cylinder with radius of 5 and height of 4 surface area
2. What type of limiting factor is space? O abiotic O biotic​
explain the circulation of blood​
Answer question 4 only
Describe and evaluate the working memory model of memory (16 marks)​