• C

Why function call typecasted to void ?

( void ) ReportError ( /* some arguments */)



void ReportError ( /* some arguments */ )
{
    /* error is reported */
}
LVL 1
naseeamAsked:
Who is Participating?
 
jkrCommented:
It's a matter of style, there is no need to do that. The programmer hereby documents that he's not using a return value beause the function has none.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.