If I were to use validation checks (both int and char) in a program, am I obliged to use structures to do so?
As an example, suppose I have a variable dept_no declared as int dept_no = 3. How is it done?
(Note: If it can only be done with structure, just say so without posting the code because I already know how to do it that way).