//Definition for variable that cannot be mentioned in any other .C file //of the same program. static int i = 10; //A const variable is ipso facto static in the above sense. const int j = 20; //Definition for variable that could be mentioned in other .C file(s) //of the same program. extern const int k = 30; //Definition for function that cannot be mentioned in any other .C file //of the same program. static int f(int i) { return 2 * i; }