chapter 15 홍정모 교수님 따라배우는 C


chapter 15 홍정모 교수님  따라배우는 C

#본문의 저작권은 인프런과 홍정모 교수님께 있습니다.#본문의 목적은 강의 복습 및 단순 참고용 입니다.//15.1 비트단위 논리 연산자// 비트단위 연산자 왜쓰나?// 메모리 낭비를 막기 위해서 쓴다.// 15. 이진수를 십진수로 바꾸기 연습문제#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <math.h>//pow()#include <string.h> //strlen()#include <stdlib.h> //exit()unsigned char to_decimal(const char bi[]);int main(){printf("Binary(string) to Decimal conversion\n");printf("%d\n", to_decimal("00000110")); // 1*(2^2) + 1*(2^1) = 4 + 2 ..........



원문링크 : chapter 15 홍정모 교수님 따라배우는 C