title: int strlen has zero stored in it c++
body: <p>i tried strlen for char to get howmany characters in cstring to join a loop which looks for charcaters in the code but strlen just returned 0
  the email[] i made that empty to get any value in it</p>
  <pre><code>using namespace std;
  #include &lt;iostream&gt;
  #include &lt;cstring&gt;
  int main(int argc, char **argv)
  
  
  {
  char email[] = &quot;&quot;;
  
  cout &lt;&lt; &quot;Enter the email in question&quot;&lt;&lt; endl;
  cin &gt;&gt; email;
  
  int size = strlen(email);
  
  for (int i = 0; i &lt; size; i++)
  {
      cout &lt;&lt; email;
      if (email[i] == '@' )
      {
          cout &lt;&lt; &quot;valid email&quot;;
  }
      
  }
  </code></pre>