正在加载图片...
Storage class- static Example /* Keep a count of times function is called (buggy version).*/ include <stdio. h> int main void testfunc( void) testfunc()i testfunc)i o return o void testfunc(void) int cnt =0 printf("testfunc call #i\n", ++cnt); PROGRAMMINGMETHDOLODGY AND SOFTWAREENGINEERING 港城市大 Copyrighto1998 Angus WuPROGRAMMING METHDOLODGY AND SOFTWARE ENGINEERING Copyright©1998 Angus Wu Storage Class - static Example /* Keep a count of times function is called (buggy version). */ #include <stdio.h> int main() { void testfunc(void); testfunc(); testfunc(); testfunc(); return 0; } void testfunc(void) { int cnt = 0; printf("testfunc call #%i\n", ++cnt); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有