Обсуждения
What is c>a?1:0
0 голосов
1 ответHow to read php
0 голосов
7 ответовDoes OR work with ternary?
2 голосов
6 ответовHow does this code work?
0 голосов
1 ответDraw this triangle [CHALLANGE]
19 голосов
23 ответов? : are called Ternary Operators.
ex.
var = booleanExp ? ValueIfTrue : ValueIfFalse;
and that ? literally means "Asking a Question" Asking if the Boolean Expression is True.
If the Boolean Expression returned true, the Value for "True" will be assigned to the variable.
If the Boolean Expression returned false, the Value for "False" will be the one that'll be assigned to the variable instead.
I'm not asking a question, I just wanna share this to you guys 😁
18 голосов
6 ответовCan we do like that in C++
1 голос
1 ответАктуальное сегодня
Vote Code
1 Votes
Input errors (python)
1 Votes
Without degree job
0 Votes
Script file names
0 Votes