Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5635,13 +5635,12 @@
\indextext{type!\idxcode{void}}%
A type \cv{}~\keyword{void}
is an incomplete type that cannot be completed; such a type has
an empty set of values. It is used as the return
type for functions that do not return a value.
an empty set of values.
\begin{note}
An expression of type \cv{}~\keyword{void} can be used as
\begin{itemize}
\item an expression statement\iref{stmt.expr},
\item the expression in a \keyword{return} statement\iref{stmt.return}
\item the \grammarterm{expression} of an expression statement\iref{stmt.expr},
\item the operand of a \keyword{return} statement\iref{stmt.return}
for a function with the return type \cv{}~\keyword{void},
\item an operand of a comma expression\iref{expr.comma},
\item the operand of a parenthesized expression\iref{expr.prim.paren},
Expand Down