Expand|Select|Wrap|Line Numbers
- static void Main()
- {
- int x;
- int y;
- int z;
- }
Expand|Select|Wrap|Line Numbers
- -&x 0x03abecc4
- x 0
- -&y 0x03abecc0
- y 0
- -&z 0x03abecbc
- z 0
Expand|Select|Wrap|Line Numbers
- static void Main()
- {
- int x = 0;
- int y = 1;
- int z;
- }
Expand|Select|Wrap|Line Numbers
- &x Expression has no address
- &y Expression has no address
- -&z 0x03abecbc
- z 0 int
And this seems to be the case with any CLR language, not just C#.
However, if I try the same thing in unmanaged C, I get what I expect.
Expand|Select|Wrap|Line Numbers
- int main()
- {
- int x = 1;
- int y = 1;
- int z = 1;
- return 0;
- }
Expand|Select|Wrap|Line Numbers
- -&x 0x0012ff60
- -&y 0x0012ff54
- 1
- -&z 0x0012ff48
- -858993460