0
Can you use arithmetic in declaration of an array?
Hello everyone! I’m wondering if this is a valid declaration of an array: const int SIZE = 10; double list [20-SIZE];
3 odpowiedzi
+ 6
Yes you can
+ 2
Yep. It is a valid declaration.
As long as the size of list is positive, it is valid.
+ 1
thank you guys!