title: What would realloc do if there is no sequential space of memory?
body: <p><code>realloc</code> is used to reallocate the memory dynamically.</p>
  
  <p>Suppose I have allocated 7 bytes using the <code>malloc</code> function and now I want to extend it to 30 bytes.</p>
  
  <p>What will happen in the background if there is no sequential (continously in a single row) space of 30 bytes in the memory?</p>
  
  <p>Is there any error or will memory be allocated in parts?</p>