Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
20 lines (11 loc) · 504 Bytes

File metadata and controls

20 lines (11 loc) · 504 Bytes
Copy raw file
Download raw file
Edit and raw actions

function-pointers

Type of pointer is the return type, then the name of the pointer and then the ARGUMENT TYPES.

int * func (int, double);

Is a pointer to a function FUNC returning int and taking arguments of type int and double.

You don’t need to take the memory address or dereference functions, because you can only call a function or take it’s address again.

int func(int x) { return x; };

int * pointer_to_func (int) = func; // & not necessary

pointer_to_func(5); // * not necessary

Morty Proxy This is a proxified and sanitized view of the page, visit original site.