I decided to find out what the code for arduino is written on, Google says that it is in C \ C ++. But I don't understand which one? Or maybe both?
In the Arduino IDE, you can write on any of them.
Theoretically, you can write in general in any compiled language, there would be a compiler for the platform.