Hi,

I was wondering what is the meaning of a function returning a const reference?

for example I have a function that defined like this:

const int& getNum() const;

how do I call this function, is
int i = getNum();

ok?

Thanks
Avi123