June is Combung

자료형 본문

C/기본

자료형

june__Park 2021. 3. 29. 16:32
#include <stdio.h>
/*
	< 자료형 (type) > 
	: 데이터의 형태 

	정수형 : 
		int형 (1개의 int형 데이터는 4byte) => %d
		
	실수형 : 
		float형 (4byte) => %f
		double형 (8byte) => %lf

	단일문자형 :
		char형 (1byte) => %c

	문자열형은 없다. => char[], 문자형 배열구조
	 
*/
void main(){
	printf("%lld \n", 10000000000); // __int64
	printf("%d \n", 3.0);
	printf("%d \n", 'A');
	printf("%d \n", "A"); 

}

'C > 기본' 카테고리의 다른 글

컴파일과 링크  (0) 2021.03.29
기본예제1  (0) 2021.03.29
n진법 표현  (0) 2021.03.29
아스키코드(ASCII)  (0) 2021.03.29
서식문자(format character)  (0) 2021.03.29
Comments