Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Bitwise-operations/AWK/bitwise-operations.awk
Normal file
10
Task/Bitwise-operations/AWK/bitwise-operations.awk
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
BEGIN {
|
||||
n = 11
|
||||
p = 1
|
||||
print n " or " p " = " or(n,p)
|
||||
print n " and " p " = " and(n,p)
|
||||
print n " xor " p " = " xor(n,p)
|
||||
print n " << " p " = " lshift(n, p) # left shift
|
||||
print n " >> " p " = " rshift(n, p) # right shift
|
||||
printf "not %d = 0x%x\n", n, compl(n) # bitwise complement
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue