Can you get value from one void to onether by pointer if yes how? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you get value from one void to onether by pointer if yes how?

i'v been writing this program ant i thought why should i return a variable value when i can just assign it to heap pointer ant then on other void just print it out by using pointer. http://stackoverflow.com/questions/41434761/can-you-get-value-from-one-void-to-another-by-pointer-if-yes-how

3rd Jan 2017, 12:03 AM
Justas Glodenis
Justas Glodenis - avatar
1 Answer
- 1
Should be no problem
3rd Jan 2017, 1:13 AM
Andreas K
Andreas K - avatar