In C#, value-type parameters are that pass a copy of original value to the function rather than reference. It does not modify the original value. A change made in passed value does not alter the actual value. In the following example, we have pass value during function call.
C# Call By Value Example
Output:
Value before calling the function 50 Value inside the show function 2500 Value after calling the function 50
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.