What does ‘?’ Mean in c?

Most likely the ‘?’ is the ternary operator . Its grammar is: RESULT = (COND) ? ( STATEMEN IF TRUE) : (STATEMENT IF FALSE) It is a nice shorthand for the typical if-else statement: if (COND) { RESULT = (STATEMENT IF TRUE); } else { RESULT = (STATEMENT IF FALSE);

Sizin İçin Seçtik  What are geofencing campaigns?

Leave a Reply

Your email address will not be published. Required fields are marked *