gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the equivalent of C's void type?


From: Benjamin Kowarsch
Subject: Re: What is the equivalent of C's void type?
Date: Wed, 25 Mar 2020 13:08:19 +0900

C does not have a void type.

Void is a modifier keyword that is used in place of the return type in a function declaration to indicate that the function does not have a return type, that is to say it does not return any value, or in other words it is not actually a function but a procedure.

In Modula-2 procedures are declared like functions but simply omit the return type.

A C procedure declaration ...

void foobar ( baz bam );

becomes

PROCEDURE foobar ( bam : baz );

in Modula-2.

On Wed, 25 Mar 2020 at 12:45, Hưng Hưng <address@hidden> wrote:
I mean C void type, not void pointer. I can't found anywhere mention it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]