Embed presentation
Download to read offline




The document discusses the conditional or ternary operator, described by the general form (expression 1 ? expression 2 : expression 3). It explains that if expression 1 is true, the operator returns expression 2; otherwise, it returns expression 3. An example is provided with a simple program that checks a salary input to determine job title as either 'manager' or 'clerk'.



