When i am running this code I am getting below error as
Run-Time Check Failure #2 - Stack around the variable 'temp' was corrupted
int main()
{
UINT8 temp[7];
for (int i = 0; i <= 7; i++)
{
temp[i] = 0x01;
}
return 0;
}//The error falls here
Please help me.
you are accessing array out of boundry
change:
to
Or more C++ way: