I know these stuff but my point is the memcpy gets a pointer in it's first parameter while you are passing a pointer to a pointer!
Type: Posts; User: eXeCuTeR
I know these stuff but my point is the memcpy gets a pointer in it's first parameter while you are passing a pointer to a pointer!
Why are you passing &n and not n? &n is a pointer to a pointer, isn't it?
---
So what's up with (int *)&f?
Doesn't (int *)&n (assuming n is an int) supposed to return a pointer to a pointer (**)?
I mean, you are casting the address of n into an int pointer - or what exactly happens if I cast something...