title: Strlen() function giving "Segmentation Fault" error
body: <p>So this is my code:</p>
  
  <pre><code>int c;
  char b[c];
  
  scanf("%s",b);
  c=strlen(b);
  
  printf("\n");
  printf("%s\n",b);
  </code></pre>
  
  <p>When I execute it, it keeps giving me a "Segmentation Fault (core dumped)" error. I don't want to define the string size before hand. I want the program to determine it after I finish writing the string.</p>
  
  <p>All help is greatly appreciated.</p>