...
All expression statements, such as function calls with an ignored value, are implicitly cast to void
. Since Because a return value often contains important information about possible errors, it should always be checked; otherwise, the cast should be made explicit to signify programmer intent. If a function returns no meaningful value, it should be declared with return type void
.
...