This code should create a cell in the heap memory.(creatBox function)
And afterwards the function addNumber should add cell to the first pointer(*box)
with the value that user input.
It dosnt work after compile. would love to get some help. where i got wrong?
You should be using the sizeof operator rather than just the magic number 4 (or what you have done on line 45) to indicate the number of bytes each element of the array is.
What exactly are you trying to do with your addNumber function?