Computer Science, asked by aniruddhatito, 1 year ago

What is the differences between if-else, switch case and ternary operator ?

Answers

Answered by Pratikdevinci
0
see
ternary operator is just a one line statement for the same work performed by if else but still if else statement is important because of many reasons as because of else if statement....

Now switch in switch statement we do the same work as else if statements but we cant use another switch statement in a case but we can do for else if statement means one statement within another ....
Similar questions