If we create any static variable then where it is storage.
eg
static int a=10;
static bool b=false;
static string name="Hamid";
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rahul SinghRank #1,323 · 1.3K reputationPosted Dec 25, 2014, 11:07 PM EST
Static variables are stored on the Managed Heap, when the type is first referenced. The Type Object of the compiled class contains a reference to the object. Please check below link for more details:-
http://msdn.microsoft.com/en-us/magazine/cc163791.aspx#S14
Hamid KhanRank #424 · 5.9K reputationPosted Apr 12, 2017, 8:06 AM EDT