int main() {
unsigned char* pointer;
pointer = malloc(1);
return 0;
}
If i call malloc the way it's shown above, will pointer[1] be a valid byte to access? or pointer[0] is the only byte i have?
the logical answer to it would be that pointer[0] is the only byte malloc gave me, because i asked to allocate one byte, but i'd like you to answer this question to know if i'm right.
thanks