+ 1

If we don't specify the number of elements in an array, can we enter any number of elements in the braces?

17th Oct 2020, 4:39 AM
Bharadwaaja Kanakadandi
Bharadwaaja Kanakadandi - avatar
3 Antworten
+ 2
You can use vectors stl in cpp you can increase size at run time .
17th Oct 2020, 5:57 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Yes you can, but make sure that you do not overflow the stack since you are trying to create them locally.
17th Oct 2020, 5:29 AM
Avinesh
Avinesh - avatar