C언어 ASCII코드표 출력

Jmnote (토론 | 기여)님의 2018년 1월 4일 (목) 11:37 판 (Jmnote님이 C언어 ASCII 출력 문서를 C언어 ASCII코드표 출력 문서로 이동했습니다)

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 }}