Is there a way to assign a pointer value (not the dereferenced value, but the actual address of the variable) to another variable? For instance
int main(int argc, char **argv){
unsigned int *p;
size_t q;
q = (size_t) p;
printf("p = %x q = %x\n", p, q)
}
does not seem to do the job... I get 0,0 for each of these...