Deal of The Day! 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
1 months ago
I agree with B) because ptr is a pointer to a char pointer.
upvoted 0 times
...
Linwood
1 months ago
I think A) is correct because **ptr means a pointer to a pointer.
upvoted 0 times
...
Carry
2 months ago
B) ptr is a pointer to char*
upvoted 0 times
...
Stevie
2 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
2 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
30 days ago
User 2: B) ptr is a pointer to char*
upvoted 0 times
...
Rodrigo
1 months ago
User 1: A) ptr is a pointer to a pointer to char
upvoted 0 times
...
...
Hannah
2 months ago
This is a classic C pointer declaration. A and B make the most sense to me.
upvoted 0 times
...
Lottie
2 months ago
A) ptr is a pointer to a pointer to char
upvoted 0 times
...
Salley
2 months ago
I agree with Valentine. Options A and B describe the meaning of the declaration accurately.
upvoted 0 times
...
Valentine
2 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
1 months ago
B) ptr is a pointer to char*
upvoted 0 times
...
Samira
1 months ago
A) ptr is a pointer to a pointer to char
upvoted 0 times
...
Blythe
1 months ago
I agree, A and B are the correct options for the declaration char **ptr.
upvoted 0 times
...
Naomi
1 months ago
Yes, A and B are correct. ptr is a pointer to a pointer to char.
upvoted 0 times
...
Mireya
1 months ago
B) ptr is a pointer to char*
upvoted 0 times
...
Winifred
2 months ago
A) ptr is a pointer to a pointer to char
upvoted 0 times
...
...

Save Cancel