title: memcpy ing float into int
body: <p>I want to know whether we can memcpy a structure containing 2 float variables into another structure containing 2 int variable. This is what I have wriiten so far</p>
  
  <pre><code>struct stFloat
  {
  float a;
  float b;
  };
  
  
  struct stInt
  {
  int a;
  int b;
  };
  
  
  int main()
  {
  struct stFloat aa;
  aa.a=12.234;
  aa.b=673.797;
  
  struct stInt bb;
  
  memcpy(&amp;bb,&amp;aa,sizeof(stFloat));
  
  printf("%d %d\n",bb.a,bb.b);
  
  return 0;
  }
  </code></pre>
  
  <p>But unfortunately I am not getting the desired result. The output that I was expecting is <strong>12 673</strong> but the output looks like some garbage. Can somebody help me resolving this issue.</p>
  
  <p>Thanks</p>