title: Are C++ int, int[], float, and especially char *, char[], char are same as these of C. I believe they are premitive so are they same?
body: <p>There are some datatypes to contain data (in memory I do think). So I like to know these types,</p>
  <pre><code>char,char *, char[], -- especially
  int, int[], int *, float, decimal, short, long, if there are any other please mention
  </code></pre>
  <p>are same in C and C++.</p>
  <p>If they are same then can I use memory functions and string functions and int, float, decimal,binary,etc functions available in C like <code>memset,memcpy,memcmp,etc.</code> and string functions like <code>strcmp, strstr, strlen, etc.</code> in cpp file and complete C++ library or kind of mixed C++ C file which is cpp or cc extension which need to be compiled with g++ or c++ compiler?</p>
  <p>Can I assign socket buffer or copy it to C++ class member of same type like C char[] to <code>char some_classobj-&gt;charsocket_datal[1024]</code> or  do C++ have their own versions of these functions? What's the header files in this case: header file I only like to ask also in this question.</p>