diff --git a/src/main/c/main_taschenrechner.c b/src/main/c/main_taschenrechner.c index e0bb699..d9bda36 100644 --- a/src/main/c/main_taschenrechner.c +++ b/src/main/c/main_taschenrechner.c @@ -73,6 +73,12 @@ int bitwiseOR(int num1, int num2) { return num1 | num2; } +// Bitwise XOR function +int bitwiseXOR(int num1, int num2) { + return num1 ^ num2; +} + +//.. // scientificmode int scientificMode(){ diff --git a/src/main/c/taschenrechner.h b/src/main/c/taschenrechner.h index b3cc747..76acfb3 100644 --- a/src/main/c/taschenrechner.h +++ b/src/main/c/taschenrechner.h @@ -35,6 +35,9 @@ int bitwiseAND(int num1, int num2); // Bitwise OR function int bitwiseOR(int num1, int num2); +// Bitwise XOR function +int bitwiseXOR(int num1, int num2); + int mode(int userChoice); int displayMenu();