By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,381 Members | 1,640 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,381 IT Pros & Developers. It's quick & easy.

I want the meaning of this statement

P: n/a
sam
Hi, can anybody tell me the meaning of this:-
void printfunc( void(*) (int&,int&) int&,int&) ;

Nov 10 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
sam wrote:
Hi, can anybody tell me the meaning of this:-
void printfunc( void(*) (int&,int&) int&,int&) ;
Looks like there's a comma missing.

void printfunc( void(*fp)(int&,int&), int&, int&);

The function printfunc takes three arguments and returns void. The first
argument (which I've named fp) is a pointer to a function that takes two
arguments of type int& and returns void. The second and third arguments
are of type int&.

--

-- Pete
Roundhouse Consulting, Ltd. -- www.versatilecoding.com
Author of "The Standard C++ Library Extensions: a Tutorial and
Reference." For more information about this book, see
www.petebecker.com/tr1book.
Nov 10 '06 #2

P: n/a
sam wrote:
Hi, can anybody tell me the meaning of this:-
void printfunc( void(*) (int&,int&) int&,int&) ;
It's a declaration of a function 'printfunc'. There is an apparent
missing comma in this statement, as well.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Nov 10 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.