--- In [email protected], kathir resh <[EMAIL PROTECTED]> wrote:
>
> what is the diff between static int and int ...

>From http://en.wikipedia.org/wiki/Static_variable :

Variables local to subroutines (local variables) are usually created
and destroyed within the subroutine itself (so-called automatic
variables). Some languages, however, (e.g., the C programming
language) allow subroutines to retain the value of variables between
calls, so that the function can preserve its state if necessary. For
example, a static variable can record the number of times its
subroutine has been executed. Doing so is otherwise possible using
global variables or external storage, like a file on disk.

Reply via email to