Assuming ptr is a pointer variable, what will the following statement output?
Cout << *ptr;
A) the value stored in the variable whose address is contained in ptr
B) the string "*ptr"
C) the address of the variable whose address is stored in ptr
D) the address of the variable stored in ptr
E) None of these
Correct Answer:
Verified
Q17: When you work with a dereferenced pointer,
Q18: It is legal to subtract a pointer
Q19: An array name is a pointer constant
Q20: The ampersand (&) is used to dereference
Q21: Which of the following statements is not
Q23: Which of the following statements displays the
Q24: What will the following statement output?
Cout <<
Q25: When you pass a pointer as an
Q26: If you are using an older computer
Q27: What will the following code output?
Int number
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents