المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : int x = new int() where this will be stored ??



C# Programming
08-24-2009, 07:00 PM
Hello All ,

i have doubt new operator will create an object on heap .

So when i declare int as int x = new int();

will these be stored in Heap or stack ? Since value type are stored on stack but at same time new wil store it on heap ?

So got confused . Please do clarify it.