Question: C programming Language Write a function that converts a single decimal digit in a char to an integer. You may use neither a library function
C programming Language
Write a function that converts a single decimal digit in a char to an integer. You may use neither a library function nor a lookup table for this task. Return -1 if the given char is not a valid decimal digit.
int parseDecimalChar(char c);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
