52.4k views
5 votes
Which of the following would determine how many elements are in values?

1). int numElements = values.length;
2) int numElements = values.length();
3) int numElements = values.size();
4) int numElements = values.size;5) double numElements = values.size;

User Shinell
by
5.2k points

1 Answer

4 votes
I guess depends on the language but for both java and C++ answer 3 is correct.
User TheLuminor
by
5.4k points