Is void a data type in C?
问题 Is void a data type in the C programming language? If so, what type of values can it store? If we have int , float , char , etc., to store values, why is void needed? And what is the range of void? 回答1: Void is considered a data type (for organizational purposes), but it is basically a keyword to use as a placeholder where you would put a data type, to represent "no data". Hence, you can declare a routine which does not return a value as: void MyRoutine(); But, you cannot declare a variable