Suppose that I have an array
bool string[N]={false};
After doing some operations all the elements of the array string become true. And I want to check this condition in an if statement like so:-
pseudo code--
if(all the elements of string are same or equal)
then do this
How do I achieve this?I am not supposed to use counters like
for(int i=0;i<N;i++) //or something else like this