Home > Back-end >  C/c, the for loop, and an array of problems.
C/c, the for loop, and an array of problems.

Time:09-30

Char dict [64].
Int idex=0;
for(int i=0; I<10; I++) {

/* could you tell me how to understand this step, idex results why is equal to 10, he is not the integer, not can't save string, don't understand the whole sentence, hope someone answer
*/


Dict [idex++]=` 0 ` + I;


}

CodePudding user response:

2222233333

CodePudding user response:

111111555555

CodePudding user response:

??????????????????????????????

CodePudding user response:

Cycle, 10 times idex since increased 10 times is ten

CodePudding user response:

Dict type is char array, can save character variable, the index is integer, where you took it as an array subscript, circulation since increased 10 times, of course, is equal to ten,

CodePudding user response:

Idex is the dict subscript of an array of characters, the subscript is plastic

CodePudding user response:

Thank you    ??????????

CodePudding user response:

don't know what kind of name, reference 4th floor response:
10 times, idex since gained 10 times is not 10

Know????????????????????????????????????

CodePudding user response:

The
Qoo reference 5 floor? Response:
dict type is char array, can save character variable, the index is integer, where you took it as an array subscript, cycle on the certainly equal to 10, 10 times

????????????????????????????????????????

CodePudding user response:

Give points, stick, I want to point! I answer