‎2008 Mar 11 5:50 AM
‎2008 Mar 11 10:27 AM
‎2008 Mar 11 10:31 AM
Hi ,
Static varaibles are varaibles that retain there value even after there scope is over . They are generally used in subroutines , generally varaibles defined in a subroutine do not retain/exist outside the subroutine , so each time the subroutine is called the variable is assigned the default value.
But if a variable is defined as static then it retains it value between subroutine calls e.g. if during call 1 the varaiable is assigned value 5 , then at the beginning of the next call also it will retain this value .
hope this helped
Regards
Arun