title: What are global strongly-typed enums initialized to by default in C++?
body: <p>I'm trying to determine the default value to which global strongly-type enums are initialized. The following code of course does not compile.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  enum class A{a=10, b=20};
  
  // Global strongly-typed enum, uninitialized
  A k;
  
  int main() {
      if(k==A::a)
          cout&lt;&lt;"Equal to a"&lt;&lt;endl;
      else if(k==A::b)
          cout&lt;&lt;"Equal to b"&lt;&lt;endl;
      else if(k==0)
          cout&lt;&lt;"Equal to zero"&lt;&lt;endl;
  
      return 0;
  }
  </code></pre>
  
  <p>What is 'k' initialized to?</p>