I think I encountered something extraordinary strange in VS 2008.
All the array values are 0x00, but why it is displayed 0x00000008 at the start of the variable?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Visual studio is displaying the size of your array (in items) not the value. You have eight bytes in your array denoted by
byte[8]in decimal orbyte[0x00000008]as a 32-bit hex value.Right click the window and select
Hexadecimal Displayto switch to a decimal view of the values. I find the decimal view more workable when dealing with small integer types and you won’t get confused by all the extra hex notation (although it depends on your personal preference).