how to delete pointer
// deleting pointer allocating an int
int *pointer1 = new int;
delete pointer1;
// deleting pointer allocating an array of ints
int *pointer2 = new int[10];
delete[] pointer2;
how to delete pointer
// deleting pointer allocating an int
int *pointer1 = new int;
delete pointer1;
// deleting pointer allocating an array of ints
int *pointer2 = new int[10];
delete[] pointer2;
pointer new and delte
p= new (nothrow) int[i];
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us