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

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77