Home > Back-end > The scanf statement cannot be used in the C language definition character array?
The scanf statement cannot be used in the C language definition character array?
Time:06-06
CodePudding user response:
A description of the building Lord itself has a problem, how can define the scanf character array? It can give a character array assignment (by receiving the content of the standard input),
The scanf use of the building Lord has a problem, change to the following:
the scanf (" % c ", & amp; A [I]); //or The scanf (" % c ", a + I);