//  File: ref5.C
//  
//  using references with const

#include <stdio.h>

int add(const int &a, const int &b) {

   a = a + 1 ;
   return a + b ;
}

main() {
   int x = 3, y = 17, z = 0 ;

   printf("Before: x = %d, y = %d, z = %d\n", x, y, z) ; 
   z = add(x,y) ;
   printf("After: x = %d, y = %d, z = %d\n", x, y, z) ; 
}
