목록비트연산자 (1)
배움 저장소

15.1 비트단위 논리 연산자 비트단위 논리 연산자는 낱개로 사용한다 C언어에서 거듭제곱 연산자(^)를 지원하지 않는다. ^연산자는 bitwise에서만 사용한다. Bit 연산자의 활용 bitwise 연산을 통해 메모리 낭비를 줄일 수 있다 Bitwise And & Bitwise OR | Bitwise Excluesive OR ^ Bitwise Not~ 15.2 이진수를 십진수로 바꾸기 연습문제 #include // pow() unsigned char to_decimal(const char binary_digit[]); int main() { printf("Binary (string) to Decimal conversion\n"); printf("%d\n", to_decimal("00000110")); p..
Programming Language/C
2021. 12. 7. 20:01