@kevin001 If you want to convert the char to int and a character '1' provides a ascii number that's not 1, you need to remove the offset '0' to realign it to count from 0-9.
Going from int to std::string to char* isn't the same as int to char*.
char[] characters = input.ToCharArray(); while (i < length) {. int num = randem.Next(0, 9); char num1 = Convert.ToChar(num)
char* arr = calloc(numOfDigits, sizeof(char))
conversion of '149' from 'int' to 'char' inside { } [-Wnarrowing]
Читаем Serial и записываем в int [B]Получение целого однозначного числа(1..9)[/B] IntVar=(Serial.read() - '0')
> Using Arduino. > Programming Questions. > Converting int into char array.
const char *msg = "На месте должно быть значение j"
char *ultoa( unsigned long value, char*string, int radix ); под radix понимают основание преобразуемого числа int value в символьную строку.