[C언어] #02 - 연산자 -
Keyword: 연산자, 복합대입연산자, 증감연산자, 심볼릭 상수, 사용자 정의 상수 비교연산자, 논리 연산자, 형변환, 명시적 형변환(강제형변환), 자동형변환, 삼항연산자(조건연산자) ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ 주소연산자 사용 #include void main() { int i; printf("정수입력: "); scanf("%d", &i); printf("i = %d\n", i); double d; printf("실수입력: "); scanf("%lf", &d); printf("d = %.2lf\n", d); char c; printf("문자입력: "); scanf(" %c", &c); printf("c = %c\n", c); } 위처럼 입력하면 이렇게 출력된다..
2021. 2. 14.