<stdio.h>: C's standard I/O library


when one integer is divided by another, the answer is 'truncated': all digits after the decimal point are lost.


defining a constant using macro definition

#define INCHES_PER_POUND 166

세미콜론 없는 것에 유의(preprocessing directive에 속함. 코드 맨 윗부분에 작성)


%.1f : float형 변수를 소수점 첫째 자리까지 표시.


identifiers: names for variables, functions, macros, and other entities

case-sensitive, 문자, 숫자, underscore를 포함할 수 있으나 숫자로는 시작하지 못함.

identifier의 글자의 길이는 걱정할 필요가 없다. C89에서는 첫 6글자, C99에선 첫 31글자가 유효하지만, 대부분의 컴파일러와 링커는 저 기준들보다 길이의 제한에 관대하다.





+ Recent posts