mercredi 27 février 2019

Whats the difference between const int const& and const int& in C++?

In c++ i can write const int const* for a constant pointer to an constant int. I can also write const int& for a const reference. So is const int const& a reference to a const int?

Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire