binding - In C++, we can't declare a reference without initialization. Why? -


in c++, can't declare reference without initialization. actual reason this.although aware uses of references in operator overloading , other concepts.

c++ references (in ordinary c++ meaning of word) can't reassigned. if reference isn't initialized can't made refer anything. , language not support null-references, hence, uninitialized reference, if such permitted, in error.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -