I have a 开发者_开发技巧problem in my visual Studio when i am running any program in VS 2008 and assign int or long to any number it is showing in 64 bit like i assign int i=0 when i debug it it shows me i=0*0000 it is converting it in 64 bit
Sounds like it's actually showing it in hex - particularly if the "*" is really an "x".
Right-click on the watch window and uncheck "Hexadecimal display".
I only have visual studio 2010, however it is likely either an issue with your debug display settings or you have used a long
(which is 64bits long)
No matter what the debugger is telling you, int
(In C# which this question is tagged as) well always be 32bit. This is most likely a display issue.
精彩评论