Basic C programming question about while loops.
I’m programming a robot with a bump sensor in C. I’m a newbie to C so this is a pretty basic question.
I’m trying to write a program that will make the robot drive at a particular speed, and each time the bump sensor is pressed it speeds up. I have an idea of how to do this but there’s one property of while loops that I’m unclear about, so I’m not sure if my idea will work.
When the condition for a while loop becomes false, the loop is exited. Will the loop start back up if the condition becomes true again, or does the program move “past” the loop?
This is homework.
Using Fluther
or