4.6 명백한 상수들 manifest constants

공기훈·2021년 7월 24일
0

홍정모의 따배씨

목록 보기
9/49

Manifest Constants

define을 통해 선언된 기호적 상수

#include <stdio.h>
#include <limits.h>
#include <float.h>

#define PI 3.141592f // manifest constants, symbolic constants

int main()
{
	printf("PI is %f\n", PI);
	printf("Biggest int: %d\n", INT_MAX);
	printf("One byte in this system is %d bits\n", CHAR_BIT);
	printf("Smallest normal float %e\n", FLT_MIN);

	return 0;
}
profile
be a coding master

0개의 댓글