intf(inti){char*cp;//cp is a wild pointerstaticchar*scp;//scp is not a wild pointer: static variables are initialized to 0//at start and retain their values from the last call afterwards.//Using this feature may be considered bad style if not commented}
Allocated memory via malloc or new but never written by the application.
0xDD
Dead Memory
Memory that has been released with delete or free. Used to detect writing through dangling pointers.
0xFD
Fence Memory
Also known as "no mans land." This is used to wrap the allocated memory (surrounding it with a fence) and is used to detect indexing arrays out of bounds or other accesses (especially writes) past the end (or start) of an allocated block.
0xCC
When the code is compiled with the /GZ option, uninitialized variables are automatically assigned to this value (at byte level).
0xAB
Memory allocated by LocalAlloc().
0xBAADF00D
Bad Food
Memory allocated by LocalAlloc() with LMEM_FIXED,but not yet written to.
0xFEEEFEEE
OS fill heap memory, which was marked for usage, but wasn't allocated by HeapAlloc() or LocalAlloc(). Or that memory just has been freed by HeapFree().