Re: Void function returns value
André Gillibert wrote:
Keith Thompson wrote:
If the function name is the operand of a unary "&", the implicit
conversion does not take place, so ``&foo'', like ``foo'' yields the
address of the function.
``&foo'' and ``foo'' are equivalent; neither
calls the function. ``&foo()'' and ``foo()'' are equivalent; both
call the function.
No. &foo() is equivalent to &(foo()) which is a constraint violation.
He must have meant ((&foo)()).
--
pete
.
Relevant Pages
- Re: Void function returns value
... conversion does not take place, so ``&foo'', like ``foo'' yields the ... You're right; thanks for the correction. ... Keith Thompson kst-u@xxxxxxx ... (comp.lang.c) - Re: signed and unsigned Sign bit doubt
... this conversion is done implicitly. ... yields the same value. ... In many implementations, the value of i will be -25536. ... assuming a 2's-complement representation for ... (comp.lang.c) - Re: changing FAT32 to NTFS
... Best to start afresh if possible- Don't forget that convert yields 512 byte ... anything more than 4k shouldn't be used if NTFS compression is to work with ... Make sure you have a full and complete backup before doing the conversion. ... (microsoft.public.windowsxp.general) - Re: Bit shifting past length of type
... it affects the value of CHAR_MAX used in the conversion, ... but it does not affect the operation of or validity of ... the shift. ... yields a fragment whose behavior is the same on all ... (comp.lang.c) - Re: Void function returns value
... conversion does not take place, so ``&foo'', like ``foo'' yields the ... You're right; thanks for the correction. ... Chqrlie ... (comp.lang.c) |
|