Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int count(void);
- int main(void){
- int i;
- for(i=0; i<25; i++){
- printf("This function has been called %d times.\n", count());
- }
- return 0;
- }
- int count(void){
- static int count=0;
- count++;
- return count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement