c++ - Error when overwriting value in unsigned char array -


why error message

 error: invalid conversion ‘const char*’ ‘unsigned char’ [-fpermissive] 

if try overwrite value in array of data type unsigned char?

the data type want overwrite value unsigend char.

don't use

your_array[index] = "c"; 

instead of

your_array[index] = 'c'; 

?

anyway should put code on post show error.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -