What does that mean in c++?

Asked

Viewed 145 times

1

I was taking a look at how to use templates in c++, when I came across this here return (a>b?a:b);. ( http://www.cplusplus.com/doc/oldtutorial/templates/ )
What is this ? code? I tried to google but it didn’t work very well, it seems that the ? is ignored in the query...
I had seen this a few times but never cared. I believe I am some kind of formatting, the same way that a = a + b be equal to a+=b , right?

  • see https://answall.com/questions/34200/dificuldade-na-syntax

  • and https://answall.com/questions/44741/assignr-uma-express%C3%A3o-a-Vari%C3%A1vel/44742#44742

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.