Xref: utzoo comp.lang.c++:13435 comp.lang.c:39276 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ncar!gatech!udel!haven.umd.edu!uvaarpa!murdoch!murdoch.acc.virginia.edu!aj3u From: aj3u@wilbury.cs.virginia.edu (Asim Jalis) Newsgroups: comp.lang.c++,comp.lang.c Subject: Pointers to functions Message-ID: Date: 14 May 91 18:06:42 GMT Sender: usenet@murdoch.acc.Virginia.EDU Organization: University of Virginia, Charlottesville, VA 22903 Lines: 22 What is the difference between these two (pf is a pointer to a function, and hello is a function): pf = hello; and pf = &hello; The definitions for pf and hello are as follows: void (*pf)(); // pointer to a function void hello() { printf("Hello World\n"); } I used the two different forms of assignments and got the same output. Is there a difference between them? Asim.