Desc :
Source Code :
#include <stdio.h>
#include <stdlib.h>
void main()
{
char buff[100];
int radix = 16;
itoa(11, buff, radix);
puts(buff);
itoa(255, buff, radix);
puts(buff);
}
Result :
'C' 카테고리의 다른 글
[C] 210 2진수 문자열을 16진수 문자열로 바꾸기 (3) | 2021.02.06 |
---|---|
[C] 209 2진수/16진수 문자열을 정수로 바꾸기 strtol (1) | 2021.02.06 |
[C] 207 변수의 번지 출력하기 (1) | 2021.02.06 |
[C] 206 특정 범위의 난수 발생시키기 (1) | 2021.02.06 |
[C] 205 1~100까지 홀수의 합 (1) | 2021.02.06 |