Bool threeConsecutiveOdds (vector
& Arr) {
for (int i=0; i If (arr [I] & amp; 1 & amp; & Arr [I + 1] & amp; 1 & amp; & Arr [I + 2] & amp; 1)
return true;
}
return false;
}
Vector C={1};
ThreeConsecutiveOdds (c);
?
The size of an array of 1, 1-2-1, 0 is greater than 1, how still in circulation CodePudding user response:
1-2=1
I=0
A false forever CodePudding user response: