Search posts...
조건식(피연산자1) ? 값 또는 연산식(피연산자2) : 값 또는 연산식(피연산자3)
int score = 85; char grade = (score > 90) ? 'A' : 'B'; // B
Gyeongwon's blog