Home > Back-end >  C language for beginners small problems
C language for beginners small problems

Time:11-22

The input string to use when gets not error (a) a is defined array
Why gets replaced by (a) the scanf (" % s ", a) complains

CodePudding user response:

Wrong may not have the reason, with specific error message to see

CodePudding user response:

Advice posted your code, and explain your compiler;
V does not support the scanf function but support safer scanf_s function, because for % s, more than the scanf one parameter, namely a, the length of the array.
  • Related