what does void do in c code example

Example 1: what is void in c

FUNCTION DECLARATION

when void is used as a function return type,
it indicates that the function does not return a value.


POINTER DECLERATION

When void appears in a pointer declaration,
it specifies that the pointer is universal.


FUNCTION PARAMETER(IN C ONLY)
When used in a function's parameter list, 
void indicates that the function takes no parameters.

Example 2: void c programming

FUNCTION DECLARATION

when void is used as a function return type,
it indicates that the function does not return a value.


POINTER DECLERATION

When void appears in a pointer declaration,
it specifies that the pointer is universal.

Tags:

C Example