If I want to define what is a double -> double function pointer I use:

typedef double (*double_fp1)(double);

But what if I would like to distinguish
const double -> double
it is possible?
And the above definition consists the const double -> duble function?

Recommended Answers

All 2 Replies

>it is possible?
Have you tried it? A lot of your questions can be tested with a compiler and a small bit of code.

If I want to define what is a double -> double function pointer I use:

typedef double (*double_fp1)(double);

But what if I would like to distinguish
const double -> double
it is possible?
And the above definition consists the const double -> duble function?

you mean :

const double_fp1  =  &myDoubleFunction;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.