0
Someone can tell me what is the use of const unsigned char *?
I'm learning and I wanna now how use const unsigned char * and const char*
2 Answers
+ 9
unsigned - it cannot have negative values
const - constant, you cannot change its value after assigning
* - pointer
0
const char* is useful for pointer to a string that will not change. ie your program will print some string, like the same welcome messages every time it starts.
The unsigned version is useful for pointer to a binary sequence you may want to write too a file.