HristoBaychev

staticver

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