How To Use Void Main In Dev C++

-->

When used as a function return type, the void keyword specifies that the function does not return a value. When used for a function's parameter list, void specifies that the function takes no parameters. When used in the declaration of a pointer, void specifies that the pointer is 'universal.'

Use of void in c

If a pointer's type is void*, the pointer can point to any variable that is not declared with the const or volatile keyword. A void* pointer cannot be dereferenced unless it is cast to another type. A void* pointer can be converted into any other type of data pointer.

Void (C); 2 minutes to read +2; In this article. When used as a function return type, the void keyword specifies that the function does not return a value. When used for a function's parameter list, void specifies that the function takes no parameters. Jul 14, 2017  The main function, actually functions, are what the C application programmer perceives as the entry point to their program. An executable file contains both the linked object code and instructions of how to execute it. Much of those instructions.

A void pointer can point to a function, but not to a class member in C++.

You cannot declare a variable of type void.

Void

Example

C++

How To Use Void Main In Dev C Online

See also

What Is Void In C

Keywords
Built-in types