Recent posts

[C] Relational, logical, and ternary operators

less than 1 minute read

In c language, True / False corresponds to non-zero and zero, respectively. Conditional expressions that judge true/false through operators are mainly used i...

[C] 사칙연산

1 minute read

c언어에서의 사칙연산을 올바르게 수행하기 위해서는 자료형, 연산자, 그리고 연산 우선순위에 대한 이해가 필요하다. 자료형에 대해서는 앞선 Data Type 에서 다루었다. 사칙연산 중 나눗셈에 대해서 자료형에 따라 그 값과 연산이 달라지게 되는데, 나눗셈 연산자의 경우 실수 간 연...

[C] Four arithmetic operations 사칙연산

1 minute read

In order to correctly perform the four arithmetic operations in the c language, it is necessary to understand the data types, operators, and operation preced...

[C] 기수법

1 minute read

C언어에서 사용하는 대표적인 Data type을 소개하기 이전에 살펴볼 것은 기수법이다. 기수법은 수를 표현하는 방법으로 사람이 일반적으로 실생활속에서 사용하는 10진수외에도 2진수, 8진수, 16진수 등이 있다. 2진수은 0과 1만을 사용하여 수를 표현하는 기수법이다. 10진수 ...

[C] 문자열

less than 1 minute read

ASCII는 글자들의 코드 배정표라고 생각하면 쉽게 이해할 수 있다. 각각의 글자들은 숫자 값이 할당되어 있으며, 1B (8 bit) 메모리를 사용한다. 이를 16진수로 표현하면 글자 1의 경우 0x31 과 같이 대응할 수 있다. ASCII 코드는 영문, 숫자 그리고 제어문자로 이...