728x90
#include <stdio.h>
int main() {
int intValue = 123;
char strValue[20]; // 충분한 크기의 문자열 버퍼를 할당
sprintf(strValue, "%d", intValue);
printf("Integer to string: %s\n", strValue);
return 0;
}
정수형을 문자형으로 바꾸는 sprintf()함수 기억하기 ~