warning C4789: destination of memory copy is too small

环境:win7 32位,vs2010

#include <iostream>
using namespace std;

int main()
{
	int arr[3];
	arr[4] = 0;
}

虽然是个waring,但居然是内存越界,必须要改的

参考:https://msdn.microsoft.com/en-us/library/w0c0bww3.aspx

你可能感兴趣的:(warning,C4789)