You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swapbits
Instructions
Écrire une fonction qui prend un byte
, échange ses moitiés (comme sur l'exemple) et retourne le résultat.
Fonction attendue
func SwapBits(octet byte) byte {
}
Exemple:
1 byte
0100 | 0001
\ /
/ \
0001 | 0100