Activity 27.3.
Please write the function
createDigit()
which receives an integer (0-9) as an argument and which creates space in memory for a digit of type digit_t
. The function should store the integer passed into it in this newly created digit and then return the address of this digit to the calling function. The function should furthermore initialize the pointer next
as the NULL pointer, just to be safe.When you are done, please paste your code into the code submission box below: