mercredi 16 mai 2018

Can I call the following code as a Dynamic initialization of a variable?

int main(){
        int *p;
        p = new int (10);
        return 0;
}

I know that the memory to the variable is dynamically allocated. But can I call it as Dynamic initialization of a variable????

Aucun commentaire:

Enregistrer un commentaire