After declaring a character array, say char s[20]
, and eventually getting inputs using cin.getline(s,100)
change the size of the array to 100, change (exactly) to the number of characters entered as input, or does it change at all? What happens to the array size that I initially declared?
I'm new to programming, so your simple explanation will be greatly appreciated. Thank you!
Aucun commentaire:
Enregistrer un commentaire