vendredi 4 décembre 2020

how do i print out multiple elements from an array in one go? (C++)

I have an array:

char testarray[5] = {'A', 'B', 'C', 'D', 'E'};

now i want to print out only 'A' & 'B' is there something like testarray[0:3] like in python?

Aucun commentaire:

Enregistrer un commentaire