C ++ language of interview questions: the difference between C ++ pointers and references

definition:

1, reference:

C ++ inheritance is the C language, which may be performed during programming, and can be characterized in an abstract data type based design program objects may also be carried out inheritance and polymorphism characterized by object-oriented program design. C ++ reference is an important extension to the C language. Reference is an alias of a variable, with reference to the operation of the variable direct operating exactly the same.

2, the pointer:

Using an address pointer, its value directly to the presence of

Guess you like

Origin www.cnblogs.com/yichengming/p/11544495.html