C++ The conditional (ternary) operator (? :) // an effective if statement alternative

preview_player
Показать описание
Let's take a look at the C++ conditional operator ( : ?) which is an if/else alternative in this tutorial.

The operator is weird in that it has three operands, not two, so it's C++'s ternary operator. It gives you some flexibility in writing your code and can result in more compact, elegant decision statements.

// Learn More //
Check out my complete C++ videos playlist:

#cpp #programming #tutorial
Рекомендации по теме
Комментарии
Автор

Great presentation; I loved it and it helped!!

kalebted
Автор

Super helpful, you're a great professor

FermentedZucchini
welcome to shbcf.ru