From 4d2f2f961cae53f4d6dc46b065bdc7a893cf6f48 Mon Sep 17 00:00:00 2001 From: fadhil riyanto Date: Fri, 4 Oct 2024 20:46:02 +0700 Subject: test merge bits Signed-off-by: fadhil riyanto --- test/bit.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/bit.c diff --git a/test/bit.c b/test/bit.c new file mode 100644 index 0000000..7e72f42 --- /dev/null +++ b/test/bit.c @@ -0,0 +1,9 @@ +#include + +int main(void) { + int first = 0xA; // 1010; + int second = 0x3; // 0011; + int result = (first << 4) | second; + printf("%X", result); + return 0; +} \ No newline at end of file -- cgit v1.2.3