I’m learning to program in Arduino and, as far as I understand it, it uses the C language (please correct me if I’m wrong).
I’m a senior in JavaScript and PHP, and now I’m having hard time with simple stuff like string handling.
If in JavaScript I have
var c = 33;
var myString = "hello" + c;
alert(myString); //---> hello33
how does it work in C/Arduino?
In C, you would do something like:
C is a language where you need to manage some low-level details yourself. There’s no automatically expanding string type in the base language/library although no doubt there are some good third-party ones around (“better strings”, for example, since it doesn’t drag in a lot of other stuff you don’t want, particularly important in the embedded space).