3 ms·
"0123456789" ch[0] = 0; ch[1] = 1; ch[2] = 2; : ch[9] = 9; ch[1] = 0; ch[2] = 1; ch[3] = 2; ....
by Locke1689 17y ago
"0123456789"
ch[0] = 0;
ch[1] = 1;
ch[2] = 2;
:
ch[9] = 9;
ch[1] = 0;
ch[2] = 1;
ch[3] = 2;
....
- mononcqc 17y agoPlease re-read his question: "how many chars we have?" "how many elements we have?" ch[1] = 0; ch[2] = 1; ch[3] = 2; ... ch[10] = 9; This is about having the Nth element of the array with the index N rather than N-1.