/* * ISA 563, Spring 2011 * Copyleft by Muhammad Abdulla */ #include /* * consttest.c -- demonstrates the effect of the "const" qualifier on variables. * This source file should not compile on a standards-complient * C compiler as are attemping to modify a "const" variable. */ int main (int argc, char *argv[]) { const int CONST_VAL = 3; /* Now try to change it. */ CONST_VAL = 5; return 0; }