Call Support +91-85588-96644
TCYonline

Login

Sign Up

Please enter a Username or Email ID
Please enter a password
Keep me logged in
Please enter your name
Please enter your mobile number
You can't leave Captcha Code empty
By submitting this form, you agree to the Terms & Privacy Policy.
OR

Sign Up via Facebook

Sign Up via Google

Sign Up via Twitter

Download Software
Tests given

Download TCY App

App Image

To delete a dynamically allocated array named 'a', the correct statement is:

 
delete a
delete a[0]
delete [] a
delete [0]a

Reply


Please type your answer before submitting.
Submit

Yooo 

Yooo 

2

Post your along with explanation

Dynamic memory allocation means memory allocated at the time of program running. if u declare area memory will be allocates so here lenth of area is not delared so at the time of running we can enter any number of elements in to arry. so if u delete the aray variable a[] the location for variable get emptyed so array also get deleted