May 22, 2015 at 10:37am
Is there any diffent between memcpy(dest,src,srcsize) and memcpy(dest,getdata(),datasize)?
Any help will be appreciated.
May 22, 2015 at 4:47pm
That depends on if there is a difference between src and getdata(), and srcsize and datasize.
May 25, 2015 at 3:15am
There is no difference bettween them.
double *src=getdata();
srcsize=datasize;
But the dest content is different. I'm confused.
May 25, 2015 at 4:09am
I'm going to guess that `getdata()' is returning the memory address of a local variable, so you are invoking undefined behaviour with memcpy().