0

How can l use the one variable from one function in other functions?

23rd Nov 2018, 9:45 AM
Igor The Golden Fish
Igor The Golden Fish - avatar
4 Answers
+ 2
If you just want to be able to use a variable everywhere, you can make it a global variable - declare it outside of any function. (Normally we prefer not to do that.)
23rd Nov 2018, 9:52 AM
HonFu
HonFu - avatar
+ 1
I'm not sure, if I fully understand your question, but... You could work with pointers. Maybe you want to elaborate?
23rd Nov 2018, 9:47 AM
Matthias
Matthias - avatar
0
Nothing new for me you are not amswered
23rd Nov 2018, 10:46 AM
Igor The Golden Fish
Igor The Golden Fish - avatar
0
Well, then, as Matthias said, ask your question in a less generic way so that we can understand what you actually need.
23rd Nov 2018, 10:55 AM
HonFu
HonFu - avatar