mardi 5 juin 2018

How to define array of const pointers in c++

Is there a way to define an array of pointers so that any pointer is const?

e.g can a char** array be defined so array[0] is const and array[1] is const etc. but array is non-const and array[j][i] is non-const?

Aucun commentaire:

Enregistrer un commentaire