title: Maximum limit of Linkedlist
body: <p>I am new in CS world.While reading some books i checked that dynamic allocation of memory, allocates memory dynamically while program runs and that memory is called heap.So that means whenever i want to create a new node in Linkedlist it get stored on heap? or else it get stored on memory and accessed runtime?</p>
  
  <p>And i also checked that whenever any programs ran, the OS creates PCB for the same including minimum 4 following parts:</p>
  
  <ol>
  <li>Heap Segment</li>
  <li>Stack segment</li>
  <li>Data segment</li>
  <li>Code segment</li>
  </ol>
  
  <p>And heap segment and stack segment grows dynamically depends on code(upwards or downwards depends on system).</p>
  
  <p>So my basic question is </p>
  
  <blockquote>
    <p>The maximum element we can add in Linkedlist until system memory exhausts or heap memory exhausts?</p>
  </blockquote>
  
  <p>I read that its until system memory exhausts.But i wondered how?</p>