blob: 1e4af932402b0a390e5c5262b99f7a2e72713401 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
int flag = 0;
int check(int x, int y) {
return x > 0 && y > 0 && (flag ^= 1);
}
int main() {
int x = 1, y = 2;
printf("%d\n", check(x, y));
printf("%d\n", check(x, y));
printf("%d\n", check(x, y));
}
|