Thread: memcpy for char *

  1. #16
    Registered User
    Join Date
    Nov 2007
    Posts
    99
    thats what i tried intially it gave me some value like

    Code:
    printf("float val=%f\n",  *(float *)(ss_ptr));
    584860314976236480000000000000000000.000000
    what this indicates and more strangely from there it goes default in the switch i really not getting what is the behaviour of float specifically in this case why it is not giving me proper value.

  2. #17
    Registered User
    Join Date
    Nov 2007
    Posts
    99
    Dear Experts,

    any comments on the below post , please tell me why is the behaviour with float is different when it is aligned properly(octaword).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Disagreement about memcpy
    By ch4 in forum C Programming
    Replies: 9
    Last Post: 05-28-2009, 10:12 AM
  2. Replies: 14
    Last Post: 06-28-2006, 01:58 AM
  3. Memcpy(); Errors...
    By Shamino in forum C++ Programming
    Replies: 4
    Last Post: 03-24-2006, 11:35 AM
  4. memcpy with 128 bit registers
    By grady in forum Linux Programming
    Replies: 2
    Last Post: 01-19-2004, 06:25 AM
  5. memcpy
    By doubleanti in forum C++ Programming
    Replies: 10
    Last Post: 02-28-2002, 04:44 PM