#include <stdio.h>
int main()
{
printf("%d\n", 1 + 2);
int income, salary, bonus;
income = salary = bonus = 100; // triple assingment
//100을 bonus에 대입. 그 후 (bonus = 100)을 salary에 대입. 그 다음 (salary = (bonus = 100))을 income에 대입.
salary = 100;
bonus = 30;
income = salary + bonus; // l-value vs r-value
int takehome, tax;
tax = 20;
takehome = income - tax;
int a, b;
a = -7;
b = -a;
b = +a; // + does nothing.
1.0f + 2; // ?
return 0;
}
실수 + 정수 = 실수 형으로 저장.