Im trying to replace this for() statement with memset() in a program,
which seem to me the exact same thing,
but i dont get the same result with memset() in the program.


Code:
int pass = 4;
int array[pass-1];

for(; j<pass; j++) array[j]=0;
       

memset(array,'\0',pass-1);