The conditional operator is a single programming statement and can only perform one operation. The if-else statement is a block statement, you can group multiple statements using a parenthesis. The conditional operator can return a value and so can be used for performing assignment operations.
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic. Login here