Home > Back-end >  With vs2019 compile-time error: 0 xc0000005,
With vs2019 compile-time error: 0 xc0000005,

Time:12-02

It's strange that data type character how this happen??

CodePudding user response:

Use the scanf, scanf_s input character or string always has some problems

CodePudding user response:

The scanf scanf_s best, don't use "a=% d, b=% d", this way,
Second scanf_s input character or string must be followed by length
Scanf_s (" % % c, c, & amp; C1, 1, & amp; C2, 1)
The best way to input the char and the
Scanf_s (" % % c, c, & amp; C1, 1, & amp; In front of the c2, 1) with getchar () eat inside the cache enter