Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the question mark character ('?') mean?

Tags:

c

What does a question mark (?) in C mean?

like image 697
Eric Brotto Avatar asked Feb 03 '11 10:02

Eric Brotto


People also ask

What does a question mark symbolize?

Question-mark definition A mark of punctuation (?) put after a sentence, word, etc. to indicate a direct question, and also used to express doubt, uncertainty, etc.; interrogation mark. Something that is unknown, mysterious, or doubtful.

What does the weird question mark mean?

The inverted question mark ¿ is written before the first letter of an interrogative sentence or clause to indicate that a question follows. It is a rotated form of the standard symbol "?" recognized by speakers of other languages written with the Latin script.

What does (?) Mean?

a punctuation mark (?) placed at the end of a sentence to indicate a question.


1 Answers

? is the first symbol of the ?: ternary operator.

a = (b==0) ? 1 : 0;

a will have the value 1 if b is equal to 0, and 0 otherwise.

like image 125
Didier Trosset Avatar answered Sep 28 '22 10:09

Didier Trosset