Pregunta de entrevista de Tata Consultancy Services

Swap two number program with call by value and call by reference explain with detail ?