묵시적 형변환 / 명시적 형변환

박호준·2021년 9월 20일
0

명시적 형변환

int a = (int) 1;

묵시적 형변환

double b = 1; // 1 은 int 인데 자동으로 double로 바뀜
profile
hopark

0개의 댓글