Z
Zero
Hi there,
I am a little bit irritated!
Consider a function fA which has a local variable iA (storage class is
auto).
Now, some books tell you,
that a variable does not exist until a value is passed to it, like
iA = 5;
Why is is then possible to write commands like
printf("%d", &iA);
Is this a random value or is it really the location of the variable?
Or consider the following code:
int iA;
int piA;
piA = &iA;
As some books say, iA does not exist, because not value is stored,
but to which address points piA.
So what really happens, when the function fA is entered?
What is the right place to read something about this topic.
Greetings from Zeh Mau
I am a little bit irritated!
Consider a function fA which has a local variable iA (storage class is
auto).
Now, some books tell you,
that a variable does not exist until a value is passed to it, like
iA = 5;
Why is is then possible to write commands like
printf("%d", &iA);
Is this a random value or is it really the location of the variable?
Or consider the following code:
int iA;
int piA;
piA = &iA;
As some books say, iA does not exist, because not value is stored,
but to which address points piA.
So what really happens, when the function fA is entered?
What is the right place to read something about this topic.
Greetings from Zeh Mau