Hi,
I just know in C# that…example
Call by value
methodTest(int Y)
{
Y=Y+10;
}
main()
{
int X = 100;
methodTest(X);
}
output 100
in case of call by reference
main()
{
int X=100;
methodTest( ref X);
}
output 110
Hi,
I just know in C# that…example
Call by value
methodTest(int Y)
{
Y=Y+10;
}
main()
{
int X = 100;
methodTest(X);
}
output 100
in case of call by reference
main()
{
int X=100;
methodTest( ref X);
}
output 110