initial import
[staff/goc4/2018bti7061.git] / c-3-libraries / examples / c-variables / global1.c
1 #include <stdio.h>
2
3
4 int myVar;
5
6 void printVar(void){
7 printf("myVar =%d\n",myVar);
8 }
9
10 int main(){
11 myVar = 10;
12 printVar();
13
14 myVar /=2;
15
16 printVar();
17 /* Output:
18 myVar =10
19 myVar =5
20 */
21
22 }