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 18 Discussion

Actual exam question for C++ Institute's CPA-21-02 exam
Question #: 18
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:

Joana
4 months ago
I agree with B) because ptr is a pointer to a char pointer.
upvoted 0 times
...
Linwood
4 months ago
I think A) is correct because **ptr means a pointer to a pointer.
upvoted 0 times
...
Carry
4 months ago
B) ptr is a pointer to char*
upvoted 0 times
...
Stevie
4 months ago
Haha, 'a bunch of strings' - that's one way to look at it! But yeah, A and B are the right answers here.
upvoted 0 times
...
Carin
4 months ago
Wait, isn't `char **ptr` just a fancy way of saying 'a bunch of strings'? I'm going with A and B too.
upvoted 0 times
Mike
4 months ago
B) ptr is a pointer to char*
upvoted 0 times
...
Rodrigo
4 months ago
A) ptr is a pointer to a pointer to char
upvoted 0 times
...
...
Hannah
5 months ago
This is a classic C pointer declaration. A and B make the most sense to me.
upvoted 0 times
...
Lottie
5 months ago
A) ptr is a pointer to a pointer to char
upvoted 0 times
...
Salley
5 months ago
I agree with Valentine. Options A and B describe the meaning of the declaration accurately.
upvoted 0 times
...
Valentine
5 months ago
A and B seem to be the correct answers. The declaration `char **ptr;` creates a pointer to a pointer to a character.
upvoted 0 times
Samira
4 months ago
B) ptr is a pointer to char*
upvoted 0 times
...
Samira
4 months ago
A) ptr is a pointer to a pointer to char
upvoted 0 times
...
Blythe
4 months ago
I agree, A and B are the correct options for the declaration char **ptr.
upvoted 0 times
...
Naomi
4 months ago
Yes, A and B are correct. ptr is a pointer to a pointer to char.
upvoted 0 times
...
Mireya
4 months ago
B) ptr is a pointer to char*
upvoted 0 times
...
Winifred
4 months ago
A) ptr is a pointer to a pointer to char
upvoted 0 times
...
...

Save Cancel