title: deleting the contents of a character array in C++
body: <p>I have initialized a character array as:
  char Buffer[1000]={0};
  In this array, data is received from a socket and displayed
  Everytime I display the contents of this array, I want to again initilize all its contents to zero. If I don't do that and again read data from the socket using the same array, some old data present in array is also displayed.
  i used memset() function to again initialize all contents of array with zeros before receiving the data second time, but it didn't work.
  Is there any other way of doing that in c/c++ ?
  seeking help :(</p>