Skip to main content
2 of 2
Merging the two Uno tags... it should be with "Arduino"- see meta.

What happens when I call exit() from my program?

In either of setup or loop, if I were to add an exit(0) call, where would control be passed to? What would the next state of the microcontroller be? Would it stop execution and power down?

I am using a revision 2 Arduino Uno.

asheeshr
  • 3.8k
  • 3
  • 26
  • 61