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
6 months agoClorinda
6 months agoKarrie
6 months agoEllen
7 months agoVirgina
7 months agoRyann
7 months agoJavier
7 months agoKarrie
7 months ago