Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Do function arguments invoke a function? |
| Date | 2015-10-04 08:09 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <mur4qa$h7o$1@dont-email.me> (permalink) |
| References | <eaba057c-8bec-449a-8055-039f2c314655@googlegroups.com> |
On 10/4/2015 5:15 AM, Chad wrote:
> In Java, when a method is called, the methods arguments invoke the method. Do functions in C do something similar?
The arguments don't invoke the method or function, the call
operator invokes it. In both Java and C, the call operator is
written as a parenthesized list (possibly empty) of argument
expressions, immediately following a method reference (Java) or
function pointer expression (C).
func ()
^^^^ ^^
| call operator (no arguments)
|
function pointer
gunc (a, b, c)
^^^^ ^^^^^^^^^
| call operator (three arguments)
|
function pointer
(The term "call operator" is my own invention, as the Standard
doesn't actually refer to such an operator: It just says, in 6.5.2.2,
that the construct "is a function call." On the other hand, the
containing section 6.5.2 is titled "Postfix operators," so speaking
of a "function call operator" isn't entirely off-the-call, er, -wall.)
--
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Do function arguments invoke a function? Chad <cdalten@gmail.com> - 2015-10-04 02:15 -0700
Re: Do function arguments invoke a function? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-10-04 08:09 -0400
Re: Do function arguments invoke a function? Chad <cdalten@gmail.com> - 2015-10-04 13:52 -0700
Re: Do function arguments invoke a function? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-10-04 17:13 -0400
Re: Do function arguments invoke a function? James Kuyper <jameskuyper@verizon.net> - 2015-10-04 17:13 -0400
Re: Do function arguments invoke a function? Geoff <geoff@invalid.invalid> - 2015-10-04 17:09 -0700
Re: Do function arguments invoke a function? Geoff <geoff@invalid.invalid> - 2015-10-04 17:10 -0700
Re: Do function arguments invoke a function? Chad <cdalten@gmail.com> - 2015-10-04 19:50 -0700
Re: Do function arguments invoke a function? James Kuyper <jameskuyper@verizon.net> - 2015-10-05 00:26 -0400
Re: Do function arguments invoke a function? James Kuyper <jameskuyper@verizon.net> - 2015-10-04 12:59 -0400
Re: Do function arguments invoke a function? James Kuyper <jameskuyper@verizon.net> - 2015-10-04 14:36 -0400
Re: Do function arguments invoke a function? jacobnavia <jacob@jacob.remcomp.fr> - 2015-10-04 19:26 +0200
Re: Do function arguments invoke a function? Keith Thompson <kst-u@mib.org> - 2015-10-04 15:36 -0700
Re: Do function arguments invoke a function? Rosario19 <Ros@invalid.invalid> - 2015-10-05 05:49 +0200
csiph-web