Storage class - static Example /* Keep a count of times function is called (working version).*/ include <stdio. h> int main void testfunc( void) testfunc()i testfunc)i o return o void testfunc(void) static int cnt =0 printf("testfunc call #i\n", ++cnt); PROGRAMMINGMETHDOLODGY AND SOFTWAREENGINEERING 港城市大 Copyrighto1998 Angus Wu ol Hone KonePROGRAMMING METHDOLODGY AND SOFTWARE ENGINEERING Copyright©1998 Angus Wu Storage Class - static Example /* Keep a count of times function is called (working version). */ #include <stdio.h> int main() { void testfunc(void); testfunc(); testfunc(); testfunc(); return 0; } void testfunc(void) { static int cnt = 0; printf("testfunc call #%i\n", ++cnt); }