🎯 Ternary Operator in C
Em poucas palavras
Definição técnica ou simplificada do conceito.
📝 Notas e Desenvolvimento
There is a possibility to shorten an if - else condition using the ternary operator, as indicated below:
// variable = (condition) ? expressionTrue : expressionFalse;
int time = 20;
(time < 18) ? printf("Good day.") : printf("Good evening.");:: Reference :: C Short Hand If … Else (Ternary Operator) (w3schools.com)
🔗 Conexões e Contexto
- Atlas: MdC - Programação, MdC - Religião
- Notas Relacionadas: