GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — c-cpp-practice/StorageClasses.c at master · op-m/c-cpp-practice Expand file tree/ Copy pathStorageClasses.cMore file actions 24 lines (23 loc) · 485 Bytes / Copy pathStorageClasses.cFile metadata and controls24 lines (23 loc) · 485 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 //i is declared as static variable within function. j is a normal integer variable. #include <stdio.h> /* function declaration */ void func(void); static int count = 5; /* global variable */ main() { while(count--) { func(); } return 0; } /* function definition */ void func( void ) { static int i = 5; /* local static variable */ int j =5; i++; j++; printf("i is %d and count is %d\n", i, count); printf("j is %d and count is %d\n", j, count); } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |