Regarding count value
Title
Question
Respected Sir/Madam
When I try to upload the sketch given in the tutorial, when I press the pushbutton for the first time a count value of 0 is displayed.
It should show as 1. Is (++count) or (count++) correct?
Arduino Display-counter-using-Arduino 06-07 min 20-30 sec
Answers:
++count works from count 1 onwards while count++ first button press starts with 0.
++count works from count 1 onward while count++ first button press start with 0
Login to add comment