Computer Science, asked by kunichanpradeep1482, 1 year ago

Difference between static and register variable in c++

Answers

Answered by Anonymous
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