Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
char要素のニブルとは何ですか?
それらをどのように交換しますか?
誰でも例を使ってニブルの交換を説明できますか:
ニブル (または、バイトとバイトの類推によるニブル) は、a の 4 ビットのチャンクですchar。
char
それらを次のものと交換できます。
c = ((c & 0x0F) << 4) | ((c & 0xF0) >> 4);
char temp1,temp2,z;// your o/p temp1=((x & 0x0f)<<4);//x be your input temp2=((x & 0xf0)>>4); z=temp1|temp2;