M
Mark Hobley
I have a function with a prototype as follows:
int foobar(int n)
If I am not interested in the return value of the function, is it legal to
use the function in statement context as follows?
foobar(6); /* Is this legal? */
Or, is it necessary to create a dummy variable for the return value, and
disregard it, as follows?
int tmp;
tmp = foobar(6); /* variable tmp is not used anywhere else in the code */
Mark.
int foobar(int n)
If I am not interested in the return value of the function, is it legal to
use the function in statement context as follows?
foobar(6); /* Is this legal? */
Or, is it necessary to create a dummy variable for the return value, and
disregard it, as follows?
int tmp;
tmp = foobar(6); /* variable tmp is not used anywhere else in the code */
Mark.