HCL Interview Question

Difference between reference and a pointer. write a program to swap two ints using a reference.