// File: ref1.C // // using references #include main() { int x = 3, y = 9 ; int &ref = x ; // initialize reference printf("x = %d, ref = %d\n", x, ref) ; x = 5 ; printf("x = %d, ref = %d\n", x, ref) ; ref = 7 ; printf("x = %d, ref = %d\n", x, ref) ; ref = y ; printf("x = %d, ref = %d\n", x, ref) ; }