Quick actions

cmd+k|ctrl+k

Navigation

Languages

Unit 39.1

Snippet info

Language

C

Visibility

public

Author

mori

Created

2019-05-28T23:55:11Z

Updated

2019-05-28T23:55:35Z

#include <stdio.h>

int main()
{
    char c1 = 'a';         // 변수에 문자 'a' 저장
    char *s1 = "Hello";    // 포인터에 문자열 "Hello"의 주소 저장

    printf("%c\n", c1);    // a: %c로 문자 출력
    printf("%s\n", s1);    // Hello: %s로 문자열 출력

    return 0;
}
INFO