Question:
I want to know if the following declaration is possible:
int *p;p= new int;int &refval= *p;
Answer:
It’s valid C++. You’re binding a reference to an l-value of type int. Thus, refval becomes an alias of *p.
Question:
I want to know if the following declaration is possible:
int *p;p= new int;int &refval= *p;
Answer:
It’s valid C++. You’re binding a reference to an l-value of type int. Thus, refval becomes an alias of *p.
Recent Articles:
In today’s digital world, technology has changed how we make payments. From contactless cards to mobile wallets, it’s now easier
No matter what you do or where you work, you are likely to encounter Windows software at some point or