Here's a cheap, bad, hack
Why do you want to refer to the data in bytes? Both are ints already.Code:memcpy((char*)array, (char*)codeguru, 2*sizeof(int))
No need to change to a different data type.
Code:for( int i=0; i<2; i++) codeguru[i] = array[i]




Reply With Quote