Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Android
- Service
- Background
- 빈
- epmty
- 검사
- PHP
- shceduler
- Job
- firebase
- workmanager
- schedule
- jobschduler
- Library
- livedatam
- jobdispatcher
- alarmanager
Archives
- Today
- Total
에몽이
chapter7 expression and assignment statements 본문
- Arithmetic Expression
- operator precedence rule: 연산에서 어떤걸 먼저 계산할지
- operator associate rule:연산자를 계산할때 왼쪽에 있는 opertor로할꺼냐 오른쪽으로 할꺼냐 거의 왼쪽에서 오른쪽으로감
- conditional expression: 조건 연산자 , c에서 쓰임, (count==0)?0:sum/count이런거임
- functional side effect:변수값을 바꿔버리는 경우 값이 꼬임,글로벌이나 &할경우 문제
- two-way나 non-local변수 사용을 막아버림
- 언어특성을 아예 못하게함,유연성 떨어짐
- expression 이 연산문같은거
- reference transparency:프로그램을 실행하면서 생기는 영향으로 같은 선언이 다른 결과를 제공하지 않고 일관되게 제공하는ㄱ서
- operator overloading:operator를 하나이상의 목적으로 부르는것 + 가 int에서도 쓰이고 float에서도 쓰이는거
- conversion
- narrow conversion:기존 타입의 값을 모두 가지고 있지 못하는 것 float->int
- widening conversion: 기존 타입의 값을 대략적으로 모두 가지는것 int->float
- Mixed mode:서로다른 타입간의 선언, coercion은 내장된 type conversion임, 대부분의 숫자들은 가능함
- relational expression:결과로 boolean 제공(!=,==같은거)
- short circuit evaluation: 모든 operand의 and/or을 평가하지 않고 결과를 만드는 연산,앞에께 틀리면 계산자체를 안함, 근데 만일 이게 and연산으로 뒤에꼐 말이 안되는거면 아예 잘못된 값이 나와버림
- assignment
- compound assignment operator:a+=b같은거
- Unary assignmet: ++a같은거
- 거의 =으로 값을 넣고 가끔:=같은것도 있음
'학교 > 프로그래밍언어론' 카테고리의 다른 글
chapter 10 implementing subprogram (0) | 2016.12.10 |
---|---|
chapter 8 statement-level control structures (0) | 2016.12.10 |