G
Garma
In this code,
int main(){
int a = 47;
int b;
int* p;
p = &b;
*p = a;
return 0;
}
Is there any problem of the code in C?
In statement of "*p = a;", is just value of 'a' copied to the memory address
of 'p' or 'p' re-pointed to address of 'a'?
Thanks for your comments!
int main(){
int a = 47;
int b;
int* p;
p = &b;
*p = a;
return 0;
}
Is there any problem of the code in C?
In statement of "*p = a;", is just value of 'a' copied to the memory address
of 'p' or 'p' re-pointed to address of 'a'?
Thanks for your comments!