BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPA-21-02 Topic 1 Question 10 Discussion

Actual exam question for C++ Institute's CPA-21-02 exam
Question #: 10
Topic #: 1
[All CPA-21-02 Questions]

What is the meaning of the following declaration? (Choose two.)

char **ptr;

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

Elinore
5 months ago
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.
upvoted 0 times
...
Ranee
5 months ago
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.
upvoted 0 times
...
Han
5 months ago
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.
upvoted 0 times
...
Carline
5 months ago
B) ptr is a pointer to char*
upvoted 0 times
...
Clorinda
5 months ago
A) ptr is a pointer to a pointer to char
upvoted 0 times
...
Karrie
5 months ago
I see your point, Virgina, but I still think A) is the correct option based on the declaration
upvoted 0 times
...
Ellen
6 months ago
I'm not sure, but I think it's A) ptr is a pointer to a pointer to char based on the asterisks used
upvoted 0 times
...
Virgina
6 months ago
I think it might be C) ptr is a pointer to a pointer to a pointer to char because it can be multi-level pointers
upvoted 0 times
...
Ryann
6 months ago
I agree with Karrie, it's A) ptr is a pointer to a pointer to char
upvoted 0 times
...
Javier
6 months ago
I think it's B) ptr is a pointer to char* because there is only one asterisk before ptr
upvoted 0 times
...
Karrie
6 months ago
A) ptr is a pointer to a pointer to char because there are two asterisks
upvoted 0 times
...

Save Cancel