?:

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 : yIf c is nonzero (true) then evaluate x, otherwise evaluate y

মন্তব্যসমূহ

এই ব্লগটি থেকে জনপ্রিয় পোস্টগুলি

C++ Class