Will this initialize correctly

Int function(){
Static int var[10000]={0}

@everule1 If it is c++, I think it should

It is c++. Will it reset to 0 on every call?, because it may be the reason my code isn’t working.

No, only on the first call.



1 Like

using memset would be better i think.
It will refresh everytime