title: What is the advantage of using vector<char> as input buffer over char array?
body: <p>I am working on a network programming and I have seen people using vector as the input buffer for socket instead of char array. </p>
  
  <p>I was wondering what it the advantage of doing this.</p>
  
  <p>Thanks in advance..</p>