刚发现无论输入任何数值或字母最后输出的结果都是a=-858993462,还请各位大神解释。
#include "stdafx.h"#include "stdio.h"
int main()
{
int a;
scanf(" \n\n\n\n\n*4d\n\n\n",&a);
printf("a = %d\n",a);
return 0;
}
--------------------Configuration: sca - Win32 Debug--------------------
Compiling...
sca.cpp
Linking...
sca.exe - 0 error(s), 0 warning(s)