Rathrola Prem Kumar
Out Parameter Modification

void ModifyValue(out int x)
{
x = 10;
x += 5;
}

int value = 3;
ModifyValue(out value);
Console.WriteLine(value); // What is the output?

By Rathrola Prem Kumar in .NET on Aug 21 2023
  • Alpesh Maniya
    Jan, 2024 30

    The output will be 15.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS