Home > Back-end >  About two dimensional array, don't understand the place, to come to consult?
About two dimensional array, don't understand the place, to come to consult?

Time:10-05

Here I define 9 element,
The first console can understand
The second input the number 12, where the three ran behind, why does not affect the program

CodePudding user response:

The first console after the first line and press enter, why won't the results

CodePudding user response:

Because there is no end of cycle, don't lose enough number nine, cycle will not quit, the following statement natural won't run,

CodePudding user response:

Although input 12 scanf_s receive only nine, the other three should be lost,
Enter a carriage return, then brush past three data to memory, circulation actually doesn't end, still waiting for the input,
  • Related