Skip to content

Commit

Permalink
sample
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Oct 6, 2024
1 parent c3bb804 commit a9065ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/incorrectLogicOperator/bad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
void foo(int x) {
if (x >= 0 || x <= 10) {}
}

dummy=foo();
6 changes: 6 additions & 0 deletions samples/incorrectLogicOperator/good.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

void foo(int x) {
if (x >= 0 && x <= 10) {}
}

dummy=foo();

0 comments on commit a9065ff

Please sign in to comment.