linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: wwp <subscript@free.fr>
To: linux-c-programming@vger.kernel.org
Subject: Re: Function call
Date: Wed, 1 Mar 2006 08:39:13 +0100	[thread overview]
Message-ID: <20060301083913.73d0fb2c@localhost.localdomain> (raw)
In-Reply-To: <CB6A009F461BE24BA3E10DAC95A4B25E12CE1A73@kormail01.in.bosch.com>

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

Hello Subbulakshmi,


On Wed, 1 Mar 2006 10:54:03 +0530 "Subbulakshmi Sadagopal (RBIN/EDS2) *" <Subbulakshmi.S@in.bosch.com> wrote:

> 
> Hello,
> 
> I have a doubt regarding the following code. There is a void function
> funckey().
> 
> void funckey()
> {
> ;
> }
> 
> void main()
> {
> funckey;
> funckey();
> }
> 
> During execution, the second statement calls the function funckey().
> 
> What does the compiler do in the first statement funckey?

It evaluates the expression "funckey", which is just a pointer to a function
(as char* foo; is a pointer to char). Function names can be used in some few
situations (passed as parameter to some functions for signal/callback
hooking for instance).


Regards,

-- 
wwp

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-03-01  7:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-01  5:24 Function call Subbulakshmi Sadagopal (RBIN/EDS2) *
2006-03-01  7:39 ` wwp [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-03-01 10:47 Honnavalli_Sreevathsa
2006-03-01 10:54 ` Shriramana Sharma
2006-03-01 11:02   ` wwp
2006-03-01 16:39     ` Glynn Clements

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060301083913.73d0fb2c@localhost.localdomain \
    --to=subscript@free.fr \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).