可能重复:
未初始化的值正在初始化?
void Encrypt( FileContent *pFile )
{
/* Get the key total ascii value */
DWORD asciiKeyValue;
for (DWORD i=0; i < pFile->keyLength; i++)
{
asciiKeyValue += pFile->encKey[i];
}
_tprintf(_T("[*]DEBUG The encKey ascii value is: %ld\n"), asciiKeyValue);
}
我被淘汰了430
when DWORD asciiKeyValue
,但一次DWORD asciiKeyValue = 0
是230
应该的。
有人对此有解释吗?当asciiKeyValue
变量没有分配显式值时,它是否会得到一个随机值?