We used to declare a void pointer like this without using auto.
auto
void* ptr = nullptr;
How should we do the same thing using auto? Which one should we use?
auto ptr = (void*)nullptr; auto ptr = (void*)0;
Aucun commentaire:
Enregistrer un commentaire