need help remembering what a function call does.

I encounted the following line of code in one of my programs. I have no idea of what it does. I believe its part of the stl?

 
fp(); 


The reason why I believe it to be part of the stl is that I can find no declaration or implementation for it in my header files. And I only call it once.
Last edited on
wait i found it....

earlier I have:

1
2
int nf(){return 0;}
int (*fp)() = nf;


What does that do?
void fp()
{
}

int main()
{
fp();
}

It sends you to that function. Is that what you meant?
Last edited on
oh i guess its just a function pointer that does absolutely nothing?
The function call doesnt have any arguments. It just sends you there to the function. This is one with arguments:

int fp(int variable, int variable2)
{
}

int main()
{
fp(5,3);
}
No, I'm just trying to think of why did I do such a stupid and pointless thing. There must have been a reason. I´m going to keep it in to be on the safe side.
Topic archived. No new replies allowed.