As it says in the title. I have been searching but I cant seem to find the answer.
What is the difference between void setup() and void setup(void) as well as void loop() and void loop(void)?
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.
Sign up to join this communityAbsolutely nothing, in modern versions of C and C++. Specifying no arguments is the same as specifying void
.
In old versions of C a function with no arguments took a single implicit int
argument or allowed you to specify the arguments on a separate line, but no one uses anything like that nowadays.