diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-09-20 20:54:56 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-09-20 20:54:56 +0800 |
| commit | 11fe3aa16496001fde36d5d8f3226079ec1e3b54 (patch) | |
| tree | ba91094749ef6e1b9586e9156e8664d45dc761ac | |
| parent | 2008ab0bc9410f7532d168c746b53e6e533c86e8 (diff) | |
| download | datalab2026-11fe3aa16496001fde36d5d8f3226079ec1e3b54.tar.gz datalab2026-11fe3aa16496001fde36d5d8f3226079ec1e3b54.tar.xz | |
bitAnd
| -rw-r--r-- | bits.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ * Difficulty: 1 */ int bitAnd(int x, int y) { - return 2; + return (~((~x)|(~y))); } /* |
