The void type in C
问题 The void type in C seems to be strange from various different situations. Sometimes it behaves like a normal object type, such as int or char , and sometimes it just means nothing (as it should). Look at my snippet. First of all, it seems strange that you can declare a void object, meaning you just declare nothing. Then I created an int variable and casted its result to void , discarding it: If an expression of any other type is evaluated as a void expression, its value or designator is