Can I declare more variables of an array exceeding the maximum capacity of the array? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Can I declare more variables of an array exceeding the maximum capacity of the array?

18th May 2017, 6:28 PM
Trijit sikdar
Trijit sikdar - avatar
2 Réponses
0
If you mean like int array[4]{0, 1, 2, 3}; array[6] = 5; cout << array[6] << endl; Yes you can.
18th May 2017, 6:40 PM
Vodolle
Vodolle - avatar
0
Thanks duet
6th Aug 2017, 4:23 PM
Trijit sikdar
Trijit sikdar - avatar