Para o vetor c de NUM_ELEM elementos dinamicamente alocado via int *c = new int[NUM_ELEM];, qual declaração o desaloca corretamente?


delete *c;


delete [] c;


delete c[NUM_ELEM]


delete c;


delete **c
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Lista de comentários


Helpful Social

Copyright © 2024 ELIBRARY.TIPS - All rights reserved.