Program testing the assignment by value and reference difference:
Assignment by value:
Assignment by reference: