Restrictions To Reference In C++
These
are a number of restriction that apply
to reference. You Cannot another reference. Put differently you cannot
obtain the address of a reference. You cannot create a reference array of
reference. You cannot create a pointer to a reference. You cannot reference a
bit-filed.
A
reference variable must be initialized when it is declared unless it is a
member of a class, a function parameter, or a retrun value. NULL reference are
prohibited.
Fig: Restrictions To Reference In C++
No comments:
Post a Comment