Hello,
I am new to this forum, I bought a DEMO9S08SH32 to various tests.
I have a problem with pointers in language C, for example:
int *p1;
(void) main(void)
{
----
*p1= 0;
----
}
The result to CodeWarrior is: *p1= 0x2e00 ?
I think normaly is: *p1= 0x0000 !
Thany you for your answer.
解決済! 解決策の投稿を見る。
p1 is a(n uninitialized) pointer to an integer, not the variable that actually holds the value.
p1 is a(n uninitialized) pointer to an integer, not the variable that actually holds the value.
Thank you for your answer, if I understand "int *P1" is only a variable that contains the adress of variables!