dimanche 26 septembre 2021

How to copy part of int16_t to char[4] in c++?

I have a variable:

int16_t label : 12

I want to take the 4 lower bits and put them in a variable of type:

char nol[4]

How can I do that in c++?

Aucun commentaire:

Enregistrer un commentaire