visual studio 2012 - Why and how do uninitialized char start at -52 in C? -


As the title says, I was under the impression that one only has a short short unsigned int , Will allow any value from 0 to 255. According to the debugger on the visual studio, whenever I start with the four , it starts at -52 'one' ?? ' Why is this a matter, and how is this possible?

It is unspecified whether the four are signed or signed, in your case it has been signed, this draft CMT is included in the standard section 6.2.5 type which says:

Three types four, signed four, and four unsigned char to collective The form is called character type. Implementation will define four that are either signed four or unsigned char .3 in the same category, representation and behavior;

Unintended automated variables have an uncertain value and therefore their initial value is unpredictable

Since we are talking about Visual Studio, this will appear in accordance with Wikipedia article because it will mark the initial stack memory Uses CC for:

Microsoft's C ++ Debugging Runtime Library and many DOS environments to mark unpublished stack memory on the CC x86 processor 3 Debug Breakpoint looks like an interrupt of interrupt.

which you should explain -52 , but you should not be considered reliable, it is not portable, it should be noted that the use of indefinite value calls undetermined behavior is.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -