mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Reorganize tests
This commit is contained in:
16
examples/c/logical_op.c
Normal file
16
examples/c/logical_op.c
Normal file
@@ -0,0 +1,16 @@
|
||||
int main() {
|
||||
int a = 0;
|
||||
int b = 0;
|
||||
int c = 0;
|
||||
int d = 0;
|
||||
|
||||
if ((a = 1) || (b = 1)) {
|
||||
b++;
|
||||
}
|
||||
|
||||
if ((c = 1) && (d = 1)) {
|
||||
d++;
|
||||
}
|
||||
|
||||
return b == 1 && d == 2;
|
||||
}
|
||||
Reference in New Issue
Block a user