Need for prefixing a function with (void)...
Posted
by puffadder
on Stack Overflow
See other posts from Stack Overflow
or by puffadder
Published on 2010-06-14T08:44:43Z
Indexed on
2010/06/14
8:52 UTC
Read the original article
Hit count: 291
Hi All,
I recently came across a rather unusual coding convention wherein the call for a function returning "void" is prefixed with (void).
e.g.
(void) MyFunction();
Is it any different from the function call like:
MyFunction();
Has it got any advantage or is it yet another needless but there coding convention of some sort?
© Stack Overflow or respective owner