Why does the statement const int8_t* cstr = "asdf"; gives error
invalid conversion from ‘const char*’ to ‘const int8_t*’
Aren’t int8_t* and char* same?
Am I missing some subtle thing here?!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
const signed char*is not the same asconst char*. Check your compilation settings, because that would explain it.int8_tis always (never say never =) at least everywhere i’ve seen) defined assigned char.