0
ternary operator c++
I have written below code but it is giving error. How to fix it and correctly use ternary operator in c++? https://code.sololearn.com/cabPunzipfOp
2 Réponses
+ 2
"continue" and "break" are statements, not expressions.
0
break and continue doesn't make any sense in your code that's why you are getting error.. Do you just want to know how to use ternary operator ???