Question

Which of the following statements is true?
(a) If the return value of function scanf matches the number of items that should have been input, then all the inputs are valid.
(b) Even if a scanf operates successfully, the values read might still be invalid.
(c) When a program expects to receive input values in a specific range, you should peform range checking on the inputs to ensure that the values received are indeed in that range (e.g., in a program that expects grades in the range 0-100, you should check that every grade is in that range).
(d)Both (b) and (c).

Answer

This answer is hidden. It contains 3 characters.