menu-iconExamlexExamLexServices

Discover

Ask a Question
  1. All Topics
  2. Topic
    Computing
  3. Study Set
    Starting out with C++
  4. Exam
    Exam 10: Pointers
  5. Question
    Which of the Following Statements Correctly Deletes a Dynamically-Allocated Array
Solved

Which of the Following Statements Correctly Deletes a Dynamically-Allocated Array

Question 19

Question 19

Multiple Choice

Which of the following statements correctly deletes a dynamically-allocated array pointed to by p?


A) delete p;
B) p delete[ ];
C) delete [ ] p;
D) delete array p;
E) None of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Q14: C++ does not perform array bounds checking.

Q15: An array name is a pointer constant

Q16: A statement that displays the address of

Q17: The expression *s->p; is only meaningful if

Q18: A pointer variable may be initialized with<br>A)

Q19: Which of the following statements correctly deletes

Q20: The code segment int *ptr; has the

Q22: The statement cin >> *p;<br>A) stores the

Q23: The statement shared_ptr&lt;int&gt; p(new int); involves<br>A) a

Q24: The expression s->m is meaningful only when

Examlex

ExamLex

About UsContact UsPerks CenterHomeschoolingTest Prep

Work With Us

Campus RepresentativeInfluencers

Links

FaqPricingChrome Extension

Download The App

Get App StoreGet Google Play

Policies

Privacy PolicyTerms of ServiceHonor CodeCommunity Guidelines

Scan To Download

qr-code

Copyright © (2025) ExamLex LLC.

Privacy PolicyTerms Of ServiceHonor CodeCommunity Guidelines