vendredi 3 septembre 2021

Difference between arr and &arr if arr is an array of ints

I am just starting out with C++ and I have a question. If arr is an array or 10 ints, then arr is a pointer to the first element in the array. But what is meant by &arr? SO what is the difference bwteen a pointer to an array and a reference to an array?

Aucun commentaire:

Enregistrer un commentaire