Thursday, August 4, 2022

POINTER TO FUNCATION

 #include<iostream>

using namespace std;


void display()

{

    cout<<"hello"<<endl;

}

int main()

{

    void(*fp)();

    fp=display;

    (*fp)();

}

No comments:

Post a Comment

CONSTRUCTURE IN PARENT CLASS

class Parent {     public Parent()     {         System.out.println("Parent Constrcutor");     }              } class Child extend...