+ 5
Hi Mikiyas Anteneh ,
With 'delete' the output won't changes it works on pointers and dynamic memory allocation, as you know dynamic memory allocation is allocating memory dynamically (at runtime ) and freeing it whenever in program or else at end of program
example :
int *p=new int; //allocating memory
*p=10;
cout<<*p; // outputs 10
delete p; // de-allocates memory
p=NULL;
So therefore it is no way concerned with output. I think you can understand by this.
Thank you , if u still have queries let me know..



