Posts

Showing posts with the label #C# #CallByValue

C# Call By Value

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 using  System;   namespace  CallByValue   {        class  Program       {            // User defined function             public   void  Show( int  val)           {                val *= val;  // Manipulating value                Console.WriteLine( "Value...