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
solved How to calculate the non-zero elements in the array? [closed]
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
solved How to calculate the non-zero elements in the array? [closed]