Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What does the following statement do ? double *num2; Declares a double variable

ID: 3646453 • Letter: W

Question

What does the following statement do ? double *num2; Declares a double variable named num2. Declares and initializes an pointer variable named num2. Initializes a variable named *num2. Declares a pointer variable named num2. None of these Use the delete operator only on that were never used not correctly initialized created with the new operator dereferenced inappropriately None of these Which of the following statements deletes memory that been dynamically allocated for an array? Int array = delete memory; in delete []; delete[] array; new array = delete; None of these When this placed in front of a variable name, it returns the address of that variable. Asterisk (*) conditional operator ampersand (&) semicolon (;) None of these What will the following statement output ? count

Explanation / Answer

41. D ---* is used to declare a pointer variable. 42) C -- 43) C --int delete[] is used to declare a array of name delete ..delete[] array is used to delete an array 44) C -- & is used to know the address and * for pointer-- 45) B --&num1 gives address of variable num1

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote