title: Access permissions of memory segment
body: <p>As we all know, memory layout has four segments as follows</p>
  
  <pre><code>Heap
  Data Segment     Read/Write permission
  code segment     Read/Execute permission
  Stack 
  </code></pre>
  
  <p>I would like to know the access permission for heap and stack segments.</p>