Skip to main content

C++ is the standard language used to program the Arduino IDE. However, the Arduino IDE does have lots of libraries built in, so functions such as "main" are not called directly in the sketch code. Most Arduino code online is written in this language.

C++ is the standard language used to program the Arduino IDE. Most Arduino code online is written in this language.

C++ is one of the most popular coding languages available, being highly cross-platform. However, transferring Arduino code to PC code (and vice versa) is very hard, even when ignoring the fact that your computer can't run a motor. For example, in C++ code, the first thing to be called is main. In Arduino C++, main is still called, however, the Arduino libraries are called, not your sketch. Those libraries then call setup and then loop repeatedly after finishing all the initialization tasks they must perform before the Arduino can run the code of your sketch.

It is pronounced "C plus plus."

Code Language (used for syntax highlighting): lang-cpp