TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
 
ASML C Coding Standard
Search

Rule:  6.3.2.1.aChecked automatically with code checker

Synopsis:void expressions shall not be used in expressions.
Language:C
Severity Level:8
Category:Conversions


Description:

Justification

A void expression is evaluated for its side effects. "void" expressions have no value and may not be used in expressions.

Example

void increment_counter(void);

i = increment_counter(); /* WRONG */

Note

Most compilers will check this in case a prototype is available.