Hi, I know it may sound stupid but I don't know how to make a variable point to another one of the same type in C. It's pretty easy with char * and pointer type variables, but how to do it with simple variables?
ex:
Any help would be appreciated.
Regards,
Kornalius
ex:
- Code:
double d;
double d2;
d = &d2; // This doesn't work but I want d to point to d2.
d = 10; // This should set d2 too.
Any help would be appreciated.
Regards,
Kornalius