title: C program NOT segfaulting
body: <p>I am trying to make my program segfault deliberately but for some reason it is not and I am kind of scared thinking that maybe something might be wrong with configurations.</p>
  
  <p>These are the programs I ran:</p>
  
  <pre><code>int main() {
    char* abc;
    abc[0] = '3';
    return 0;
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>int main() {
    int try[] = {3,4,2};
    printf("%d", try[10]); // this prints '0'
    return 0;
  }
  </code></pre>
  
  <p>Could someone please explain why they are not segfaulting? For context, the OS that I am running on is macOS Catalina.</p>