// Constante definieren met const i.p.v. #define

int main() {
	int i(3);
	const int j(24);

	// Een constante moet je initialiseren:
	const int k;
	// Fout (Borland):   Constant variable 'k' must be initialized
	// Fout (Microsoft): 'k' : const object must be initialized if not extern
	// Fout (gcc):       uninitialized const `k'

	// Een constante mag je niet veranderen:
	j=7;
	// Fout (Borland):   Cannot modify a const object
	// Fout (Microsoft): 'j' : you cannot assign to a variable that is const
	// Fout (gcc):       assignment of read-only variable `j'

	return 0;
}

