Difference between static and register variable in c++
Answers
Answered by
2
Unlike global variables, local static variables are visible only within their function of declaration. For global static variables, compiler creates a global variable which is only visible within the file of declaration. Variables declared static are initialized to zero(or for pointers, NULL) by default.
I hope this will help you
If helpful then please select my answer as brainliest answer
And also follow me ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
Similar questions
Physics,
6 months ago
Science,
6 months ago
Computer Science,
6 months ago
Environmental Sciences,
1 year ago
Math,
1 year ago