Is the syntax used in Arduino entirely C++ or is there some special syntax occassionally

  arduino, arduino-c++, c++
// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second

I am new to Arduino with very basic C experience, though also starting to learn C++ because I hear Arduino is based on C++.
My key question for now is how does the code above implement a loop (runs the code forever) without a "while’ or ‘for’ keyword? or is there a special function named ‘loop’ that does the magic?

Source: Windows Questions C++

LEAVE A COMMENT