Pergunta de entrevista da empresa Tata Consultancy Services

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