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

node.js - How to mock a third-party api calls in the backend -

java - Could not locate OpenAL library -

Non Unique Username with ASP.Net Identity 2.0 -