title: memcpy doesn't copy anything or not?
body: <p>I don't understand why the array t1 is empty. As I know, memcpy shouldn't care about the underlying types of the objects. What do you think? %)</p>
  
  <pre><code>cout &lt;&lt; sizeof(float) &lt;&lt; sizeof(int) &lt;&lt; endl;
  
  float *t1= (float *)malloc(20*sizeof(float));
  memset(t1,0x00,20*sizeof(float)); 
  
  int *t2= (int *)malloc(20*sizeof(int));
  for (int i=0; i&lt;20; i++) 
      t2[i]=i;  
  
  memcpy(t1,t2,20*sizeof(int));
  
  for (int i=0; i&lt;20; i++) 
      printf("%f\t", (float)t1[i]); 
  </code></pre>
  
  <p>I know what type casting means. Ok I did a little mistakes. It was carelessness!</p>
  
  <p><strong>P.S. It was sample for understanding  how  memcpy works!!</strong> </p>