+ 1
How can I make a global function?
I have a situation that I have to put a function inside and I want the code inside the function accessible to other functions. How can I do that? PS: I searched the discussions and there were some results but when I looked at them, it was still confusing.
4 ответов
+ 1
Taehodz :D a nested function can a be accessed by the other functions as well.
+ 1
You have to declare external storage class with "extern" keyword.
+ 1
Thank you, everyone :)
0
We can create global function by writing function outside the main function or we can say that you have to declare function in class and then call that function inside the class