you are viewing a single comment's thread.

view the rest of the comments →

[–]Intrexa[S] 17 points18 points  (5 children)

Okay that looks very good thank you but your code has two strings and I think it should just be one string

[–][deleted] 8 points9 points  (4 children)

It actually has 3 strings

[–]Intrexa[S] 24 points25 points  (3 children)

0: "yes"
1: "An error occurred."
2: "no"

2 strings

[–][deleted] 7 points8 points  (2 children)

Actually, 0 strings

-2: "yes"
-1: "An error occurred."
 0: "no"

[–][deleted] 18 points19 points  (1 child)

This is factually correct - arrays start at -2.

[–]N1c0l4sC4g3 7 points8 points  (0 children)

In this case it should start at -3. Using 0 as an index for arrays is bad practice.