[LCP]what value does the foo() return?
Greg Black
gjb at gbch.net
Thu Jan 1 20:30:32 UTC 2004
On 2004-01-01, mehul radheshyam choube wrote:
> int foo()
> {
> if(0) {
> return 0;
> }/* if(0) */
> }
Once would have been enough. As for the question, using the
result of a call to foo() is undefined. This would be clear
from reading any competent book or the Standard.
While you're learning C, it would also be a good idea to drop
useless comments of the type in the code above.
Cheers, Greg
More information about the linuxCprogramming
mailing list