Skip to content

void

The void is a type keyword representing the absence of a type. It is used as a return type for functions that do not return a value.

Syntax

void fuBar() { /* function body */ }

Example Code

void printMessage()
{
    std::print("Hello, world!");
}

int32 main()
{
    printMessage();
    return 0;
}