An array of 100 elements consists of only 0's and 1's. One should count the number of 1's or 0's with a very few lines of C program. One method is to sum all the elements to get the number of 1's. But there should be a built-in command to get the answer in a single line of program, I suppose. Please notify me if anyone knows the answer.

Question asked by visitor Vanitha