Home > Back-end >  C language function within the scanf input problem
C language function within the scanf input problem

Time:12-03

Brothers, ask that what went wrong!!

CodePudding user response:

I just want to use this function to check the accuracy of input Inspection, if the wrong input again, this can't achieve, why ah,,, new meng meng

CodePudding user response:

Since you 18 wrote the scanf (" % d ", & amp; A); Why type characters "a"?

CodePudding user response:

When entering a, the return value to a custom function (Inspectionint), but when the input 3, correctNumber value can not be returned to the main function of a. so the main function of a or a random value, the original poster can define a, given an initial value, and then run it,
  • Related