Doubt with variables.

Hello,

One hitch easy for guys.

char a = "J#" int b = 3

To do "char c" receive "char a" + "int b" to be able to print it?

= J#3

Thanks in advance.

terolando:
char a = “J#”

You can’t store a string in a char variable.

I’m not sure what you’re asking, but I’m going to guess it’s how to put a string and numbers together. In that case, you should lookup sprintf().

I actually want client.write (x), where

String a = "bla" int b = 21

Char x = String a + int b

client.write (x),

mas que x seja igual a "bla21"

terolando: I actually want client.write (x), where

String a = "bla" int b = 21

Char x = String a + int b

client.write (x),

mas que x seja igual a "bla21"

So start by not using String, use a char array. Then take a look at sprintf() on how to format a string with a number.