Will the following code compile?
#include <iostream>
using namespace std;

class A {
        A () {}
        ~A () {}
public:
        void dd () { cout << "DDD"; }
};


int main () {
        A *a = new A ();
        a->dd ();
        delete a;
        return 0;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes