1. the pointer is an entity, and the reference is only an alias;
2. You do not need to unreference (*) when using a reference. The pointer must be unreferenced;
3. The reference can only be initialized once during definition, and will not be changed afterwards; the pointer will be variable;
4. No const is referenced, and the pointer has const;
5. The reference cannot be blank, and the pointer can be blank;
6. "sizeof reference" gets the size of the variable (object) to which it points, while "sizeof Pointer" gets the size of the pointer itself (the address of the variable or object to which it points;
7. the pointer and reference auto-increment (++) operations have different meanings;
8. In terms of memory allocation, the program allocates memory areas for pointer variables, but does not need to allocate memory areas for reference.
Difference between pointer and reference