C언어 ASCII코드표 출력

1 개요[ | ]

Print ASCII
ASCII 출력
C언어 아스키코드표 출력
  • printf() 함수로 ASCII 문자 출력
#include <stdio.h>

int main() {
    printf("DEC\tOCT\tHEX\tGLYPH\n");
    for (int i = 0; i <128; i++) {
        printf("%d\t%o\t%x\t%c\n", i, i, i, i);
    }
    return 0;
}
// DEC	OCT	HEX	GLYPH
// 0	0	0	
// 1	1	1	�
// 2	2	2	�
// 3	3	3	�
// ... (생략)
// 122	172	7a	z
// 123	173	7b	{
// 124	174	7c	|
// 125	175	7d	}
// 126	176	7e	~
// 127	177	7f	?

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}