Question: If c is a character variable that contains a digit, what does the following function return? int digit _ to _ int ( char c

If c is a character variable that contains a digit, what does the following function return?
int digit_to_int(char c)
\{
return (int(c)- int('0'));
\}
the ASCII value of \( c \)
the character value of \( c \)
the integer equivalent of the digit stored in c
none of these
If c is a character variable that contains a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!