I see your point, but I also think A) is the right answer. Having a double pointer makes more sense in this context, as it allows for more flexibility in memory allocation.
I disagree, I believe the correct answer is B) ptr is a pointer to char* because it specifies that ptr is pointing to a char pointer, not a pointer to a pointer.
I think the answer is A) ptr is a pointer to a pointer to char because it indicates a pointer pointing to another pointer that points to a char. It's like a double pointer.
Elinore
5 months agoRanee
5 months agoHan
5 months agoCarline
5 months agoClorinda
5 months agoKarrie
5 months agoEllen
6 months agoVirgina
6 months agoRyann
6 months agoJavier
6 months agoKarrie
6 months ago