[ad_1]
You don’t need to explicitly check against NULL
for(i=0; i < 1000; i++)
{
if(!symbols[i]) // If pointer is NULL then increase the elements
numberofelemets++;
}
1
[ad_2]
solved How to calculate the non-zero elements in the array? [closed]