c - How can I assign a specific address to a variable? -
how can assign specific address stored variable?
#include <stdio.h> void main() { int = 10; printf("%d\n%d\n", a, &a); &a = 2300000; }
no, there no way can assign address variable. can assign arbitrary location ie., can point address pointer like
int *ptr; ptr = (int*)7000;
but changing or assigning specific address not possible.
Comments
Post a Comment