Differences with C++

It's also perfectly valid in Arduino. You're doing something wrong. But, unfortunately there's no way to tell what since you neglected to post complete code.

2 Likes