Objects and Classes - Programming

Q1:

Which of the following statements is correct about the program given below?
class Aptitude
{
    public:
    static void MyFunction();
};
int main()
{
    void(*ptr)() = &Aptitude::MyFunction;
    return 0; 
}

A The program reports an error as pointer to member function cannot be defined outside the definition of class.

B The program reports an error as pointer to static member function cannot be defined.

C The program reports an error as pointer to member function cannot be defined without object.

D The program reports linker error.

ANS:A - The program reports an error as pointer to member function cannot be defined outside the definition of class.

No answer description is available. Let's discuss.