Maha

Maha

  • NA
  • 0
  • 329.1k

NP109 Correct or Not

Jul 27 2008 8:49 AM

Hi Guys

 

NP109 Correct or Not

 

http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_memory2B01142006125918PM/csharp_memory2B.aspx

 

In “C# Heap(ing) Vs Stack(ing) in .NET: Part II” article under the Passing Reference Types heading I have a confusion. Article is saying “we get the value "12345".

 

In my view we will not get “12345” but “2”. Because ref has not been used in the associated program, please tell me whether I am correct or not.

 

Thank you


Answers (2)