title: C Length of Array (filled)
body: <p>i want to check the size of a array (the filled size).</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      char name[10];
      puts("Write your name");
      scanf("%2s", name); //test
  
      size_t n = sizeof name / sizeof *name;
      printf("size: %d",n); //result 10
  
  }
  </code></pre>
  
  <p>I want to get the result 4 (for test)</p>