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 -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -