/*A PROGRAM TO COUNT NUMBER OF ELEMENTS IN ARRAY OTHER THAN 0..*/
#include<stdio.h>
int main()
{
int count=0,i,arr[7]={0,1,2,3,0,4,7};//SUPPOSE I HAVE THIS ARRAY IN WHICH THERE ARE 2 0'S...MEANS LEAVING 0'S ..THERE ARE 5 ELEMENTS IN THIS ARRAY..//
for(i=0;i<7;i++)
{
if(arr[i]!=0)
count++;//COUNT=0 INITIALLY//++MENT THE COUNT ,..EVERYTIME WHEN ELEMENT OF ARRAY IS NOT = TO 0...//
printf("NO OF ELEMENTS IN ARRAY OTHER THAN 0 =%d\n",count);//NOW PRINT THE COUNT ...LAST TIME COUNT WILL PRINT 5//MEANS LEAVING 0'S ,..ARRAY HAS 5 ELEMENTS..//