NOTE: I know there are many questions that talked about that but I'm still a beginner and I couldn't understand the examples.
I got a function prototype that goes like this:
int someFunction(const char * sm);
Here, as you know, const char* means that this function can accept const or non-const pointer-to-char. I tried something like that in the function body:
someMemberVar = sm;
someMemberVar is just a pointer-to-char. The compiler gives me an error telling me: cannot convert from const char* to char*.
Here, I didn't pass a constant, so either sm or someMemberVar aren't constants. So, what constant the compiler is talking about?