Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int foo();
- static int nG;
- ///////////////////////////////////////////////////////
- int main() //
- {
- printf("nG = %d \n", foo() );
- printf("nG = %d \n", foo() );
- printf("nG = %d \n", nG );
- }
- ///////////////////////////////////////////////////////
- int foo() //
- {
- static int nG = 88;
- nG ++;
- return nG;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement