Write the definition of a function named digits. The function takes three arguments and does not return a value. The first function is an integer value. The next two arguments are integer pointers. The function interprets the first argument as a decimal value. It extracts the one's digit from the value and stores it using the 2nd argument (which is a pointer). It extracts the ten's digit from the value and stores it using the 3rd argument (which is also a pointer). Ignore the main.c file. Write your code in the digits.c file.

Answer :

Answer:

void digits(int a,int *b,int *c)//a is an int variable,b and c are integer pointer variables

{

*b=a%10;//string ones digit in b

*c=(a/10)%10;//storing tens digit in c

}

Other Questions