#include <iostream>
#include <cstdlib>
using namespace std;

int a;         // Global ints are initialized to zero.
int b = 0;     // Unnecessary, but it's nice to be explicit.
int c = -5;    // Initializing a global int.

int main() {
    int d;     // An uninitialized local has some random value.
    int e = 6; // Initializing a local

    // One can declare and initialize multiple
    // locals in one statement.
    int f = 7, g, h = -8;

    // A variable can be initialized with any
    // expression of compatible type.
    int i = a, j = b + 2, k = abs(g + 3 * h) - 5;

    cout << a << ' ' << b << ' ' << c << ' ' << d << ' ' << e
	 << ' ' << f << ' ' << g << ' ' << h << ' ' << i << ' '
	 << j << ' ' << k << endl;

    // Unlike C, variables can be declared
    // anywhere.
    int l;
}
