#What does void mean in C language?
In C language, "void" means untyped, and the corresponding "void *" means untyped pointer. It is commonly used in programming to define parameter types, return values, and pointer types in functions. Make a declaration, its function is to limit the function return and parameters.
C language keywords
auto: declare automatic variables
break: jump out of the current loop
case: switch statement branch
char: declare character variable or function return value type
const: declare read-only variable
continue: end the current loop and start the next cycle
default: The "default" branch in the switch statement
do: The loop body of the loop statement
double: Declare a double-precision floating-point variable or function return value type
else: Negative branch of conditional statement (used with if)
enum: Declaration of enumeration type
extern: Declaration of variables or functions defined in other files or other locations in this file
float: declare floating point variable or function return value type
for: a loop statement
goto: unconditional jump statement
if: conditional statement
int: Declare an integer variable or function
long: Declare a long integer variable or function return value type
register: Declare a register variable
return: Sub Program return statement (can be with or without parameters)
short: declare a short integer variable or function
signed: declare a signed type variable or function
sizeof : Calculate the data type or variable length (that is, the number of bytes occupied)
static : Declare static variables
struct: Declare structure type
switch : Used for switch statements
typedef: used to alias the data type
unsigned: declare an unsigned type variable or function
union: declare a union type
void: Declare a function with no return value or parameters, declare an untyped pointer
volatile: indicate that variables can be implicitly changed during program execution
while: loop condition of a loop statement
Recommended tutorial: "C#"
The above is the detailed content of What does void mean in C language?. For more information, please follow other related articles on the PHP Chinese website!