C언어 ASCII코드표 출력

John Jeong (토론 | 기여)님의 2018년 1월 4일 (목) 10:34 판 (새 문서: ==개요== ;Print ASCII ;ASCII 출력 *printf() 함수로 ASCII 문자 출력 <source lang='C'> #include <stdio.h> int main() { int i; printf("10진수\t 8진수\t 16진...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

Print ASCII
ASCII 출력
  • printf() 함수로 ASCII 문자 출력
#include <stdio.h>

int main()
{
    int i;

    printf("10진수\t 8진수\t 16진수\t 부호\n");

    for (i = 0; i <128; i++) {
        printf("%d\t %o\t %x\t %c\n", i, i, i, i);
    }

    return 0;
}

2 같이 보기

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