Error when overwriting value in unsigned char array

101 views Asked by At

Why do I get the error message

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

if I try to overwrite a certain value in an array of data type unsigned char?

The data type I want to overwrite the value is also a unsigend char.

1

There are 1 answers

0
Bastien On BEST ANSWER

Don't you use

your_array[index] = "C";

instead of

your_array[index] = 'C';

?

Anyway you should put some code on your post to show us where is the error.