Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 4 / bitwise_examples.cpp
diff options
context:
space:
mode:
Commit8f4b6b75fd57a34d33bb9dd17af305898a8da81e (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2020-11-05 02:24:49 +0200
Committer
 GitHub <noreply@github.com>
2020-11-05 02:24:49 +0200
Filesbff6717aa2d01d98fb8d21811a04a8262d9bf91f /Sem. 4/bitwise_examples.cpp
Introduction_to_programming_FMI-8f4b6b75fd57a34d33bb9dd17af305898a8da81e.tar
Introduction_to_programming_FMI-8f4b6b75fd57a34d33bb9dd17af305898a8da81e.tar.gz
Introduction_to_programming_FMI-8f4b6b75fd57a34d33bb9dd17af305898a8da81e.zip
Parent1c826f0ed418fbf71c111ae8a33f24e9adba8b8d (diff)
Update bitwise_examples.cpp
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Sem. 4/bitwise_examples.cpp4
diff --git a/Sem. 4/bitwise_examples.cpp b/Sem. 4/bitwise_examples.cpp
index e8524ab..b6c01c0 100644
--- a/Sem. 4/bitwise_examples.cpp
+++ b/Sem. 4/bitwise_examples.cpp
@@ -4,7 +4,7 @@ using namespace std;
int main()
{
int a = 13; // 000...01101
- int b = 20; // 000...10100
+ int b = 20; // 000...10100
int r1 = a & b; // 000...00100(4)
int r2 = a | b; // 000...11101(29)
@@ -17,4 +17,4 @@ int main()
std::cout << r3 << endl;
std::cout << r4 << endl;
std::cout << r5 << endl;
-} \ No newline at end of file
+}