Disconnecting Arduino's serial while it's running

Hi everyone,

I'm new to Arduino and I'm working on my first project. I need to know what happans if I disconnect Arduino (which is being powered via barrel jack) from the USB cable while it is running. What I actually need to do is to pass some parameters to the board before it enters in the loop() function.

Thank you

Try it - at worst the Uno will reset as the power source switches from Uno to power jack.
At the start of setup, turn off the LED and pause a second, do your setup stuff, then at the end of setup, have it turn on the LED and then sit there until you press a button to give it the go ahead to proceed. Once the LED comes on, pull the USB and see if it stays, or if it turns off while the uC restarts.