Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 04-13-2005, 06:48 PM   #1 (permalink)
 
True Techie

Join Date: Dec 2004

Posts: 145

Mohan Giri

Default Pointers in C

What is the use of declaring function as a pointer????
Mohan Giri is offline  
Old 04-13-2005, 11:19 PM   #2 (permalink)
 
Newb Techie

Join Date: Apr 2005

Posts: 4

Nobin

Default

i am not really certain, but i would guess to make the code easier to read and to make it easier to input things into the function from the program. i used a pointer to a function in making a login program.
Nobin is offline  
Old 04-14-2005, 01:43 PM   #3 (permalink)
 
Super Techie

Join Date: Mar 2005

Posts: 259

C.Ingram

Send a message via AIM to C.Ingram Send a message via Yahoo to C.Ingram
Default

Callbacks.

Quote:
Pointer to a function are perhaps on of the more confusing uses of pointers in C. Pointers to functions are not as common as other pointer uses. However, one common use is in a passing pointers to a function as a parameter in a function call. (Yes this is getting confusing, hold on to your hats for a moment).
http://www.cs.cf.ac.uk/Dave/C/node12.html
__________________
Christopher Ingram
Principal Consultant, Souken Group, LLC.
C.Ingram@SoukenGroup.com
(856) 392 5244 -- (866) Go Souken
C.Ingram is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On