1.9 Introduction to literals and operators

주홍영·2022년 3월 10일
0

Learncpp.com

목록 보기
21/199

https://www.learncpp.com/cpp-tutorial/introduction-to-literals-and-operators/

Literals

literal이란 constant같은 개념
variable처럼 값이 변할 수 있는 것이 아닌 항상 같은 값으로 고정되어 있어서 변할수 없음

Operators

operands는 피연산자
operators는 피연산자를 연산하는 연산자

Unary : 단항
Binary : 이항
Ternary : 삼항
피연산자의 개수에 따라 결정
삼항은
condition ? expression1 : expression2;
condition 참이면 exp1, 거짓이면 exp2

profile
청룡동거주민

0개의 댓글