Variable declared inside a static function

In reply to Manoj J:

‘a’ is an automatic variable that gets initialized to 0 on each call to get(). You can declare ‘a’ as a static variable if thst is what you want.

The syntax
static function static
was made illegal in the 1800-2009 LRM to prevent the confusion you are having now.

See automatic variables inside static method | Verification Academy