I have a simple program which initializes an array as:
int a[]={10,20,30,40,50};
char *p;
p=(char*)a;
Now I want to access the value at each byte through pointer p
. For that I need to know: how is the array stored in memory? Is it stored on the stack or the heap?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…