Converting char array to int I'm trying to use nRF24L01 module to send a messages between 2 arduinos

Transmiter code:

  const char text[] = "Hello World";
  radio.write(&amp;text, sizeof(text));

  delay(1000);


Reciver code:

char text[32] = {0};
radio.read(&amp;text, sizeof(text));

Serial.println(text);


How I can put into char array an int value?
I tried doing it in this way

For example:
      int a = 60;
      const char text[] = String(a);
      radio.write(&amp;text, sizeof(text));

  delay(1000);
Are you just looking for a way to get an arbitrary number expressed as a string? If so, you'll likely want to use some existing functions to help you along. 

I recommend using sprintf

sprintf(char * str, char * format, args)


Where str is the string you're storing results in, format is the string you're inserting your values into for, you guessed it, formatting, and args are all the args, separated by commas, that you'll be passing into the format string to be inserted into the str string. An example might be:

char[x] result;    //x is the number of elements in your array, atleast one for every letter and one for the end character, ex: "hello" needs 6.
int number = 24;
sprintf(result, "My number is %d", number);
sendSomewhere(result);   //sends "My number is 24"