Advertisement
dllbridge

Untitled

Dec 6th, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3. int foo();
  4.  
  5.  
  6. /////////////////////////////////////////////////////////////////
  7. int main()
  8. {
  9.  
  10.     printf("%d\n", foo());
  11.     printf("%d\n", foo());
  12.     printf("%d\n", foo());
  13.     printf("%d\n", foo());
  14.     printf("%d\n", foo());
  15. }
  16.  
  17.  
  18.  
  19.  
  20. int foo()
  21. {
  22.      int mas[10] = { 100,101,102,103,104,105,106,107,108, 109 };
  23.      
  24.      static int  b = -1;
  25.      
  26.      b++;
  27.      
  28.      return b;
  29. }
  30.  
  31.  
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement