Which of the following statements is not valid C++ code?
A) float num1 = &ptr2;
B) int ptr = &num1;
C) int ptr = int *num1;
D) All of the above are valid.
E) All of the above are invalid.
Correct Answer:
Verified
Q2: To dereference a structure pointer and simultaneously
Q3: A function may return a pointer, but
Q4: Which arithmetic operations can be performed on
Q5: The and operators can respectively be used
Q7: The statement int *ptr; means
A)the variable called
Q8: Any time you use the new operator,
Q10: When the less than ( < )operator
Q11: The statement double *num;
A)defines a pointer variable
Q32: If arr is an array identifier and
Q46: A statement that displays the address of
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