What is a static variable?

Questions by mithila

Showing Answers 1 - 2 of 2 Answers

Dhanik

  • Sep 24th, 2005
 

Static variable is associate with the class not to an object.it executed only once.

  Was this answer useful?  Yes

Sarada

  • Feb 24th, 2006
 

  • static variables are local to the block in which they are declared.

  • The value of the static variables will persist between different function calls.

  • Default initial value of a static variable is zero.

  • The storage for static variables is Memory.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions