[C언어] 숫자를 문자열로 변환 - itoa, ltoa, ultoa, fcvt, ecvt, gcvt
숫자를 문자열로 바꾸는 itoa함수, ltoa함수, ultoa함수, fcvt함수, ecvt함수, gcvt함수에 관한 내용입니다. ※요약 itoa : integer 값을 2진, 8진, 10진, 16진 문자열로 변환합니다. ltoa : long 값을 2진, 8진, 10진, 16진 문자열로 변환합니다. ultoa : unsigned long 값을 2진, 8진, 10진, 16진 문자열로 변환합니다. fcvt : 실수(고정 소수점:float) 값을 문자열로 변환합니다. ecvt : 실수(부동 소수점:double) 값을 문자열로 변환합니다. gcvt : 실수 값을 부호와 소수점을 포함하여 문자열로 변환합니다. ※함수 원형 및 설명char *itoa( int value, char *string, int radix )..
더보기
[C언어] 각 데이터형 범위
C언어 각 데이터형 범위 입니다.출처는 MSDN입니다. Type NameBytesOther NamesRange of Valuesint4signed–2,147,483,648 to 2,147,483,647unsigned int4unsigned0 to 4,294,967,295__int81char–128 to 127unsigned __int81unsigned char0 to 255__int162short, short int, signed short int–32,768 to 32,767unsigned __int162unsigned short, unsigned short int0 to 65,535__int324signed, signed int, int–2,147,483,648 to 2,147,483,647unsig..
더보기