Ternary operator ?: vs if...else

Viewed 120915

In C++, is the ?: operator faster than if()...else statements? Are there any differences between them in compiled code?

14 Answers
Related