converting an integer to a string

What is wrong with this? I want the output to be..hello 0. hello 1, hello 2, etc. There is something wrong with my itoa implementation. Maybe a better way?

byte x = 0;

String text;


x = x + 1

text = "hello " + itoa(x);




What is wrong with this?

You’re using String.
You’re not using code tags.
Your code doesn’t compile.

Serial.print knows how to convert integers to ASCII

Serial.print("hello ");

Is there a way to delete a post? I would like to re-write the question.

What is the new question?

I did a repost.

The answers are still relevant and correct.