Problems using pointers with Function

Hi. I always have confusions while using pointers with functionsboth as arguments and as return type. Can someone please give me hints to use on this??
//return_type (*fp)(argument_type);

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include<vector>
using namespace std;

void increas(int i){
cout<<i;
}

int main()
{
void (*fp)(int);
fp=increas;
fp(6);
  return 0;
}
Topic archived. No new replies allowed.