Wath is static variable in c++
Answers
Answered by
3
Answer:
Static keyboard in C++
Static variables are initialized only once. Compiler persists the variable til the end of the program. Static variable can be defined inside our outside the function.They are local to the block. The default value of static variable is zero.
Answered by
7
Explanation:
declared using the keyword static. The space for the static variable is allocated only one time and this is used for the entirety of the program. Once this variable is declared, it exists till the program executes.
hope this will help u
Similar questions