#include <stdio.h>

int main() {
    char c_array[10] = {'c','o','d','i','n','g','\0'};
    printf("%s\n", c_array);
    // \0 널문자를 생각해서 원래 크기보다 1씩 더 크게 설정

    for(int i=0;i<10;i++){
        printf("%c\n", c_array[i]);
    }

    //아스키코드
    for(int i=0;i<10;i++){
        printf("%d\n", c_array[i]);
    }

    printf("%d\n", '1');

    //문자열 입력받기
    char name[64];
    scanf("%s", name);
    printf("%s", name);
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: