Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2. void foo(void);
  3.  
  4. int main(){
  5. foo();
  6. foo();
  7. foo();
  8. foo();
  9. foo();
  10. foo();
  11. foo();
  12. foo();
  13. }
  14.  
  15. void foo(){
  16. static int i = 0;
  17.  
  18. printf("%d\n", i++);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement