2
Answers

NP109 Correct or Not

Ask a question
Maha

Maha

16y
1.8k
1

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)