Question: 3. Write and test a function named isNumeric which will determine whether a string consists entirely of numeric characters, i.e. the characters 0..9. Your function
3. Write and test a function named isNumeric which will determine whether a string consists entirely of numeric characters, i.e. the characters 0..9. Your function should return a 1 in register $v0 if this is so; otherwise it should return a 0 in register $v0. Assume that register $a0 points to the string, and that it is terminated by a null byte. The string of length 0 is not a numeric string.
3. Write and test a function named isNumeric which will determine whether a string consists entirely of numeric characters, i.e. the characters ' 0 '..' 9 '. Your function should return a 1 in register $v0 if this is so; otherwise it should return a 0 in register $v0. Assume that register $a0 points to the string, and that it is terminated by a null byte. The string of length 0 is not a numeric string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
