0

How to go about using a calculation void function to place the values in an array?

I've created a calculation within a void function, but having difficulty calling that function within an array function. The size of the array is depended on the number of values created by the void function. Any suggestions? v/r Sherwin Slaughter

25th Jan 2017, 9:25 PM
Progress101
Progress101 - avatar
2 Respuestas
+ 1
Give the void function a pointer to an array where you can store the location of the new array you create in the function. You'll probably have to manually allocate the memory though, otherwise the array will be deleted after the void function is done.
25th Jan 2017, 10:01 PM
Robobrine
Robobrine - avatar
0
I'll give that a try, thank you.
25th Jan 2017, 10:03 PM
Progress101
Progress101 - avatar