Posts
All the articles I've posted.
-
[C] Relational, logical, and ternary operators
In c language, True / False corresponds to nonzero and zero, respectively. Conditional expressions that judge true/false through operators a...
-
[C] Declaration of variables and functions
When writing code based on the C language, variables or functions are used. These are declared with definitions, and they need to be underst...
-
[C] 관계, 논리, 그리고 삼항연산자
c 언어에서 참/거짓은 각각 0이 아닌 값과 0에 대응된다. 연산자를 통해 참/거짓을 판단하는 조건 식은 주로 if, for, while 문에서 활용되며, 관계 및 논리 연산자를 통해 표현된다. 비교 연산자는 값의 크기를 비교하거나 값의 일치 여부를 ...
-
[C] 변수와 함수의 선언
C언어 기반으로 코드를 작성할 때 변수나 함수를 사용하게 된다. 이들은 정의와 함께 선언되는데, 선언되는 위치와 양식에 따라 다른 동작을 하기 때문에 이해할 필요가 있다. 변수의 경우 선언하는 위치에 따라 2가지 종류로 나눌 수 있다. 첫 번째는 전역...
-
[C] Four arithmetic operations 사칙연산
In order to correctly perform the four arithmetic operations in the c language, it is necessary to understand the data types, operators, and...