title: use of pointer with getline() function
body: <pre><code>char *p;
  cout &lt;&lt; "Enter the string and press ENTER: ";
  cin.getline(p,delimiter);
  </code></pre>
  
  <p>How this code should works,like from compilers point of view.I mean a character pointer should take a character only but when I run this code it takes characters up to delimiter. Here delimiter could be any int. <strong>Ex-2,10,1200</strong>.</p>
  
  <p>It should show compiler error that you have not allocated memory to char pointer but it compiles</p>