Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] what is pointer functions in c++

Status
Not open for further replies.
look at this

Code:
double sinf(double x1);//declaration
double cosf(double x1);//declaration
double tanf(double x1);//declaration

int main()
{double y;
int i;
double (*funt[3])(double f)={sinf,cosf,tanf};
double num=30;

	for(i=0;i<3;i++)               {
		y=funt[i](num);
             }
}

double sinf(double z)
{
//put your code here
}
double cosf(double z)
{
//put your code here
}

double tanf(double z)
{
//put your code here
}
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top