In article <11*********************@o13g2000cwo.googlegroups. com>,
<re*******@gmail.com> wrote:
ok guys
its
void *fn(int *a,int *b);
main
{
-----
-----
}
how will you call this fn without using it in main ?
Depends what you mean by "using" it. For example if you register
it as a signal handler or an atexit handler, then it will be invoked
and yet it will not be invoked "in main".
For some meanings of "using it": you could pass a pointer to the
function into a lower level routine and have it called there through
a function pointer. The function -pointer- will have been "mentioned"
in main, but not "used" in main [in the traditional "use" vs
"mention" sense.]
Also, your specific implementation may allow the entry point to
be changed to something other than main()
--
"This was a Golden Age, a time of high adventure, rich living and
hard dying... but nobody thought so." -- Alfred Bester, TSMD