I have am array of uint8:
uInt8 data1[88];
I want to convert it to the byte array (char*). I tried
char * temp = reinterpret_cast<char*>(data1);
which work for double[]
, but there is no data in output and strlen(temp)
is 0. I print all data1's elements but it was blank and when I convert it's elements to the string (using the to_string
), it will print 0 and 1.
How can I solve the problem?