From b664da82e1520912e11d600b2859e8509675d805 Mon Sep 17 00:00:00 2001 From: Dennis Sperzel Date: Mon, 29 Jan 2024 17:40:39 +0100 Subject: [PATCH] addition full adder base case 0+0=0 with carryover --- src/addition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addition.c b/src/addition.c index 9cdc24d..fbf355a 100644 --- a/src/addition.c +++ b/src/addition.c @@ -2,5 +2,5 @@ #include void volladdierer (int* s, int* nc, int a, int b, int c) { - s[0] = 0; + s[0] = c; } \ No newline at end of file