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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -