vendredi 1 janvier 2016

why the statement int null = 0, *p = null is illegal?

I'm new to C++ and is trying the learn the concept of pointer. Could someone tell me why the C++ statement below is illegal? It seems to me to be legit but I have been told its illegal. Thanks in advance for any help!

int null = 0, *p = null;

Aucun commentaire:

Enregistrer un commentaire