Assuming that we have a T myarray[100] with T = int, unsigned int, long long int or unsigned long long int, what is the fastest way to reset all its content to
T myarray[100]
For static declaration I think you could use:
T myarray[100] = {0};
For dynamic declaration I suggest the same way: memset
memset