diff options
author | fadhil riyanto <me@fadev.org> | 2024-10-04 20:46:02 +0700 |
---|---|---|
committer | fadhil riyanto <me@fadev.org> | 2024-10-04 20:46:02 +0700 |
commit | 4d2f2f961cae53f4d6dc46b065bdc7a893cf6f48 (patch) | |
tree | f3109d5d89cf5a09d85cfe2ca42e88633ecdb0ae | |
parent | 15b73113119e06c50a5cb434a80eb3b55640a6df (diff) |
test merge bits
Signed-off-by: fadhil riyanto <me@fadev.org>
-rw-r--r-- | test/bit.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <stdio.h> + +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 |