Hi Guys
NP55 Incomplete program
Following incomplete program is given in the following website. The article says that “it makes sense that the output from our code is "5"”,.
http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_memory2B01142006125918PM/csharp_memory2B.aspx
Anyone knows how to complete the program that makes the output 5. Please help.
Thank you
class Class1
{
public void Go()
int x = 5;
AddFive(x);
Console.WriteLine(x.ToString());
}
public int AddFive(int pValue)
pValue += 5;
return pValue;