I have a large integer array as below in my code which will hold pixel data. After some internal operations i need to check whether all the elements in the array are '0' or i have some valid values. Currently my code is running on the loop to verify it.
int a[1000000];
Is there any best to check for all zero values in array?
OS: Linux
Please suggest me solutions in memory efficient and time efficient.
Thanks, Parthiban N