test how bits works in c code