diff options
Diffstat (limited to 'test')
-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 |