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
8 months agoRanee
8 months agoHan
8 months agoCarline
8 months agoClorinda
8 months agoKarrie
8 months agoEllen
9 months agoVirgina
9 months agoRyann
9 months agoJavier
9 months agoKarrie
9 months ago