T
timor.super
Hi group,
I'm making an application in C++ with has different behavior if I use
a buffer in the main function or at global scope :
int buff[256];
int main()
{
callFunctionThatUseBuffer(buff);
return 1;
}
the function called has different behavior (and a bad behavior) if i'm
doing
int main()
{
int buff[256];
callFunctionThatUseBuffer(buff);
return 1;
}
How to explain that ?
Thanks for your help.
Best regards,
S.
I'm making an application in C++ with has different behavior if I use
a buffer in the main function or at global scope :
int buff[256];
int main()
{
callFunctionThatUseBuffer(buff);
return 1;
}
the function called has different behavior (and a bad behavior) if i'm
doing
int main()
{
int buff[256];
callFunctionThatUseBuffer(buff);
return 1;
}
How to explain that ?
Thanks for your help.
Best regards,
S.