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

Write a claim for the following question: Are cell phones a harmful invention?
What theme does the author develop about acceptance in paragraphs 1-7? • A. It is essential to confront individuals when they make fun of other people for their
9. The expression (xn)(x5)3 is equivalent to x30. What is the value of n?
помогите решить неравносторонний sin x > -1/2
Which of the following are solutions to the equation below? Check all that apply. 4x²2²-12x+9=5 □ A. x= √5-3 □ B. x= -√4-3 C. x=--√5 + 3 □ D. x = √5 + □ Ex= √4-
Piperidine (C5H11N) is an amine found in black pepper. Find Kb for piperidine in the appendix C, and then calculate Ka for the C5H11NH+ cation. Find Ka for HOCl
27 5/3 in simplest radical form
Jana is training for a triathlon that includes a 112 mile bike. Today she rode her bike 15 miles in 45 minutes. What is the Jana rate in miles per hour?
Graph 4 ≤ x TOO {++++|++++) ✓
what is δu for the formation of 1 mole of co at 1 atm and 25°c?