Skip to main content
5 votes

Does int array[100] = {0} construct work on Arduino?

This construct does work in Arduino IDE. In fact, = { 0 } is one of the iconic idioms of C language. It can be used to zero-initialize an object of any type in C. In C++ things are a bit more ...
AnT stands with Russia's user avatar
2 votes
Accepted

C++ State Machine / Wpmf-convesion

A pointer to a member function is not allowed in C++. GCC can allow it, but moans at you because it's non-standard. In C++ the normal way of dealing with the kind of thing you want is through class ...
Majenko's user avatar
  • 106k
2 votes
Accepted

How do I make Arduino IDE use a specific version of GCC in Debian?

As Majenko pointed out, I should have used a tarball from the official site instead of the repositories. Which makes me wonder why that package wasn't deprecated or something...
Dmitry Fedorkov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible