Home / Expert Answers / Computer Science / write-a-function-call-with-arguments-tensplace-onesplace-and-userint-be-sure-to-pass-the-first-tw-pa850

(Solved): Write a function call with arguments tensPlace, onesPlace, and userInt. Be sure to pass the first tw ...



Write a function call with arguments tensPlace, onesPlace, and userInt. Be sure to pass the first two arguments as pointers. Sample output for the given program: tensPlace = 4, onesPlace = 1#include void SplitIntoTensOnes(int* tensDigit, int* onesDigit, int DecVal){ *tensDigit = (DecVal / 10) % 10; *onesDigit = DecVal % 10; } int main(void) { int tensPlace; int onesPlace; int userInt; scanf("%d", &userInt); /* Your solution goes here */ printf("tensPlace = %d, onesPlace = %d ", tensPlace, onesPlace); return 0; }



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe