+ 1
It would be better if they start the actual code on a separate paragraph.
I kept getting confused with seeing pass=false?name. I thought it was a half-written operator lol.
1 ответ
+ 17
Yes, sometimes people don't use proper indentation
which makes code difficult to read ... specially for beginners...
It might be a ternary operator...
ternary operator syntax :
condition ? true : false
for eg :
int i=1;
cout<<(i>0) ? "positive" : "negative";
output : positive