목록bit 제어 (1)
nowornever
C 프로그래밍 - 비트 제어
자, 오늘은 C에서 비트를 manipulate (매니퓨울-레이트 라고 읽습니다. 적당한 한국말이 떠오르지 않네요, 조작? 조종?) 해봅시다. C언어는 비트조작(제어)을 하기에 굉장히 효율적입니다. 근데 대체 비트 조작이 뭐냐구요 ? Bitwise Operators: Bitwise operator works on bits and perform bit by bit operation. Assume if A = 60; and B = 13; Now in binary format they will be as follows: A = 0011 1100 B = 0000 1101 ----------------- A&B = 0000 1100 A|B = 0011 1101 A^B = 0011 0001 ~A = 1100 0011..
Study
2013. 4. 23. 19:44