Article View: comp.lang.c.moderated
Article #2451Pointers to functions
From: Lloyd Hopkins
Date: Mon, 01 Apr 1996 13:20
Date: Mon, 01 Apr 1996 13:20
15 lines
1227 bytes
1227 bytes
Hi, I've recently been working my way through K&R (second edition) and whilst most of it is clear enough, I'm having trouble with 5.11, 5.12 (Pointers to Functions, Complicated Declarations) and I thought I'd ask here to see if anyone can help. The main thing which is puzzling me, is just why you'd want to create a pointer to a function? Another thing is that looking at the sort program in 5.11, there is a reference to a function called "comp", but I can't actually see any function called "comp" anywhere in the code? I'd also appreciate it if anyone could direct me to any more sources of information on the topics covered in 5.11 and 5.12. Thanks in advance for any help, Lloyd
Technical Details
Message-ID:
<4jol6u$1sn@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: Lloyd Hopkins <Lloyd@bomber.demon.co.uk> Newsgroups: comp.lang.c.moderated Subject: Pointers to functions Date: 1 Apr 1996 07:20:30 -0600 Organization: Bomber 2 Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4jol6u$1sn@solutions.solon.com> Reply-To: Lloyd@bomber.demon.co.uk NNTP-Posting-Host: solutions.solon.com X-NNTP-Posting-Host: bomber.demon.co.uk X-Newsreader: Demon Internet Simple News v1.30 X-Mail2News-Path: bomber.demon.co.uk