What is application of pass by value and pass by reference function and could you give a real time verification example?

where can we use function(pass by value and pass by ref.) is there any scenario which we can write to verify the design?

In reply to Wasim Bagwan:

You rarely need pass by reference. See passing arguments by reference | Verification Academy