Notice
Recent Posts
Recent Comments
Link
«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags
more
Archives
Today
Total
관리 메뉴

문타쿠, 공부하다.

[C언어 코딩 도장] Unit 39. 연습문제 및 심사문제 본문

C언어/C언어 코딩 도장

[C언어 코딩 도장] Unit 39. 연습문제 및 심사문제

개발새발 문타쿠 2023. 9. 24. 16:51

39.6 연습문제: 문자열 만들기

#include <stdio.h>

int main(void)
{
    char s1[] = "Beethoven 9th Symphony";

    printf("%s\n", s1);

    return 0;
}

39.7 연습문제: 문자열 요소 출력

#include <stdio.h>

int main(void)
{
    char s1[30] = "Beethoven 9th Symphony";

    printf("%c\n", s1[10]);

    return 0;
}

39.8 심사문제: 문자열 만들기

#include <stdio.h>

int main(void)
{
    char s1[30] = "Beethoven\n9th\nSymphony";

    printf("%s\n", s1);

    return 0;
}