I want to convert this: int number = 12345678; to uint8_t numarray[] = "12345678";
How to make this possible? I will really appreciate your help.
I want to convert this: int number = 12345678; to uint8_t numarray[] = "12345678";
How to make this possible? I will really appreciate your help.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int number = 12345678;
char numberArray[10] = {0};
itoa(number,numberArray,10);
printf("Number Array = %s",numberArray);
return 0;
}
I think this code will do what you want