Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int foo();
- /////////////////////////////////////////////////////////////////
- int main()
- {
- printf("%d\n", foo());
- printf("%d\n", foo());
- printf("%d\n", foo());
- printf("%d\n", foo());
- printf("%d\n", foo());
- }
- int foo()
- {
- int mas[10] = { 100,101,102,103,104,105,106,107,108, 109 };
- static int b = -1;
- b++;
- return b;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement