/* CSE 303, Spring 2009, Marty Stepp This program prints the memory addresses of several local variables. It also takes advantage of the fact that C does not check array bounds by intentionally going past the end of the array to set y's value. Output: x = 10, y = 20 x = 10, y = 999 */ #include int main(void) { int x = 10; int y = 20; int a[2] = {30, 40}; printf("x = %d, y = %d\n", x, y); a[2] = 999; // !!! printf("x = %d, y = %d\n", x, y); return 0; }