[41] == 42 elements right? | Sololearn: Learn to code for FREE!

+1

[41] == 42 elements right?

When the quiz asks for an array with 42 elements, then why is “new double[42]” the right answer, and “new double[41]” wrong? element [0] counts too, right??

1/15/2018 11:08:01 PM

Richard

5 Answers

New Answer

+2

Thanks for answering. Exactly my thoughts, so then why is an array with number 42 within the brackets the right answer, it should be [41] 🤔

+1

Ohh thanks, I thought it to be otherwise. Much appreciated!

0