C Validation: Range Check Tutorial
Greetings, in this C tutorial we shall be doing a range check on the length of a string. A range check in C is very similar to a length check in C. The big difference is, with a range check, we are checking if a value is within a specific range.
An example of a range check could be, checking if an age inputted is between 18 and 120. Or the length of a name is between 3 and 60 characters long. We could also use a range check to ensure an integer is a valid index of an array, to prevent an out of bounds error.
There are many uses for a range check in C.
Thanks for watching this C tutorial on how to do a range check.
Subscribe to keep notified when I upload: https://tinyurl.com/SubMaxODidily
C Validation: Range Check Tutorial