1#include <stdio.h>
2
3/* global variable declaration */
4int g;
5
6int main () {
7
8 /* local variable declaration */
9 int a, b;
10
11 /* actual initialization */
12 a = 10;
13 b = 20;
14 g = a + b;
15
16 printf ("value of a = %d, b = %d and g = %d\n", a, b, g);
17
18 return 0;
19}