char *a=NULL; char& p = *a;
My understanding is that:
char *a=null //creates a null pointer.
char &p = *a //puts whatever is at the address of the pointer a into the the value at p (which is presumably initialised earlier?). But since a is null, this is gonna give a segmenation fault.
Is this correct?