Which of the following statements is not valid C++ code?
A) int ptr = &num1;
B) int ptr = int *num1;
C) float num1 = &ptr2;
D) All of the above are valid.
E) All of the above are invalid.
Correct Answer:
Verified
Q11: _ can be used as pointers.
A) Array
Q12: The delete operator should only be used
Q13: Which arithmetic operations can be performed on
Q15: When you work with a dereferenced pointer,
Q17: The statement double *num;
A) defines a variable
Q18: It is legal to subtract a pointer
Q18: The _, also known as the address
Q19: A function may return a pointer, but
Q20: The code segment int *ptr; has the
Q21: A pointer variable is designed to store
A)
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