I am studying the memset function now, but all the examples are regarding to char array as following:
char a[100]; memset(a, 0, 100);
it will s
For static-sized and variable-length arrays, you can just
foo [...]; memset (foo, 0, sizeof (foo)); // sizeof() gives size of entity in bytes
Rule of thumb: Never hardcode [data sizes].
(This does not work if you pass arrays as function arguments: Behaviour of Sizeof in C )