?:
something That can't be evaluated with if else:
bool inBigClassroom = false;
const int classSize = inBigClassroom ? 30 : 20;
Conditional Operator evaluates as:
Conditional | ?: | c ? x : y | If c is nonzero (true) then evaluate x, otherwise evaluate y |
মন্তব্যসমূহ
একটি মন্তব্য পোস্ট করুন