Function Declarations

John Gibney john_gibney%830.312 at fidogate.fido.oz
Wed Sep 6 03:54:24 AEST 1989


Original to: all

I am trying to work out what the following decalration means:- 
 
    int (*function)() = NULL; 
 
 

and it is later used:- 
 
    (*function)(); 
 
 

I would appreciate it if anyone could explain this code to me. 
I am fairly new to C and I think this code may help me 
with a menu program I am currently writing. 
 
 

Thanks. 
 

John  :-) 
 
 

---
 * Origin: Southern Mail CBCS - An OZNET System (Opus 7:830/312)



More information about the Comp.lang.c mailing list